aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-01-31 10:39:12 +0100
committerKenny Levinsen <kl@kl.wtf>2022-01-31 11:04:26 +0100
commit518e18a54b9fc07682b46f6bb3bb848ff8760a7f (patch)
treede360c3b9b0f0a56f821df0b06589bc2eb03eb7a /sway
parentcd1ee0e172a10a3f8a420ff20aa1a69d46c7b4ad (diff)
downloadsway-518e18a54b9fc07682b46f6bb3bb848ff8760a7f.tar.xz
Use bools for CLI flags
Diffstat (limited to 'sway')
-rw-r--r--sway/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/main.c b/sway/main.c
index b6f8a8bf..cbe6e603 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -241,7 +241,7 @@ static void handle_wlr_log(enum wlr_log_importance importance,
}
int main(int argc, char **argv) {
- static int verbose = 0, debug = 0, validate = 0, allow_unsupported_gpu = 0;
+ static bool verbose = false, debug = false, validate = false, allow_unsupported_gpu = false;
static const struct option long_options[] = {
{"help", no_argument, NULL, 'h'},
@@ -286,23 +286,23 @@ int main(int argc, char **argv) {
config_path = strdup(optarg);
break;
case 'C': // validate
- validate = 1;
+ validate = true;
break;
case 'd': // debug
- debug = 1;
+ debug = true;
break;
case 'D': // extended debug options
enable_debug_flag(optarg);
break;
case 'u':
- allow_unsupported_gpu = 1;
+ allow_unsupported_gpu = true;
break;
case 'v': // version
printf("sway version " SWAY_VERSION "\n");
exit(EXIT_SUCCESS);
break;
case 'V': // verbose
- verbose = 1;
+ verbose = true;
break;
case 'p': ; // --get-socketpath
if (getenv("SWAYSOCK")) {