option-parser: Make bools boolean
authorDaniel Stone <daniels@collabora.com>
Tue, 26 Nov 2019 00:32:22 +0000 (00:32 +0000)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 28 Nov 2019 19:24:13 +0000 (19:24 +0000)
commitdd8219b3fb4280bab83b4ab29ce58bac6db3c443
tree6e8221a696366fcae2df5b3276840cb113a344d5
parentb8c392644560d0e5e8b0491e9f964df6d16380a6
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>
clients/confine.c
clients/editor.c
clients/eventdemo.c
clients/nested.c
clients/subsurfaces.c
clients/terminal.c
compositor/main.c
shared/option-parser.c
tools/zunitc/src/zunitc_impl.c