diff options
author | Daniel Stone <daniels@collabora.com> | 2019-11-26 00:32:22 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2019-11-28 19:24:13 +0000 |
commit | dd8219b3fb4280bab83b4ab29ce58bac6db3c443 (patch) | |
tree | 6e8221a696366fcae2df5b3276840cb113a344d5 /tools | |
parent | b8c392644560d0e5e8b0491e9f964df6d16380a6 (diff) | |
download | weston-dd8219b3fb4280bab83b4ab29ce58bac6db3c443.tar.gz |
option-parser: Make bools boolean
When option-parser is confronted with a boolean option, have it write a
bool rather than treating the value as a pointer to an int32.
(lib)weston already heavily uses bool types internally, so this has the
nice side effect of eliminating quite a few local variables which only
existed as integer shadows of internal boolean variables.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/zunitc/src/zunitc_impl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/zunitc/src/zunitc_impl.c b/tools/zunitc/src/zunitc_impl.c index 05db0229..395bdd74 100644 --- a/tools/zunitc/src/zunitc_impl.c +++ b/tools/zunitc/src/zunitc_impl.c @@ -524,13 +524,13 @@ int zuc_initialize(int *argc, char *argv[], bool *help_flagged) { int rc = EXIT_FAILURE; - int opt_help = 0; - int opt_nofork = 0; - int opt_list = 0; + bool opt_help = false; + bool opt_nofork = false; + bool opt_list = false; int opt_repeat = 0; int opt_random = 0; - int opt_break_on_failure = 0; - int opt_junit = 0; + bool opt_break_on_failure = false; + bool opt_junit = false; char *opt_filter = NULL; char *help_param = NULL; |