diff options
Diffstat (limited to 'src/utilities/util_main.c')
-rw-r--r-- | src/utilities/util_main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utilities/util_main.c b/src/utilities/util_main.c index 79d768f5752..75b8a5cd9c4 100644 --- a/src/utilities/util_main.c +++ b/src/utilities/util_main.c @@ -12,7 +12,7 @@ const char *home = "."; /* Home directory */ const char *progname; /* Program name */ /* Global arguments */ const char *usage_prefix = "[-Vv] [-R] [-C config] [-h home]"; -int verbose; /* Verbose flag */ +bool verbose = false; /* Verbose flag */ static const char *command; /* Command name */ @@ -30,7 +30,7 @@ main(int argc, char *argv[]) WT_SESSION *session; size_t len; int ch, major_v, minor_v, tret, (*func)(WT_SESSION *, int, char *[]); - int logoff, recover; + bool logoff, recover; char *p; const char *cmd_config, *config, *rec_config; @@ -65,7 +65,7 @@ main(int argc, char *argv[]) * needed, the user can specify -R to run recovery. */ rec_config = REC_ERROR; - logoff = recover = 0; + logoff = recover = false; /* Check for standard options. */ while ((ch = __wt_getopt(progname, argc, argv, "C:h:LRVv")) != EOF) switch (ch) { @@ -77,17 +77,17 @@ main(int argc, char *argv[]) break; case 'L': /* no logging */ rec_config = REC_LOGOFF; - logoff = 1; + logoff = true; break; case 'R': /* recovery */ rec_config = REC_RECOVER; - recover = 1; + recover = true; break; case 'V': /* version */ printf("%s\n", wiredtiger_version(NULL, NULL, NULL)); return (EXIT_SUCCESS); case 'v': /* verbose */ - verbose = 1; + verbose = true; break; case '?': default: |