diff options
author | Garrett Credi <garrettcredi@gmail.com> | 2023-05-07 23:17:40 -0500 |
---|---|---|
committer | Garrett Credi <garrettcredi@gmail.com> | 2023-05-07 23:17:40 -0500 |
commit | c7e1e62fa4a7fd18b9838dbf0aa9a6b34180b59d (patch) | |
tree | 31c4ef8e257250a3c66ac26e45fed8c2ff6e7d60 | |
parent | 8c34f5d38e1c3363bdaaaf54a8996ff5499262db (diff) |
Now just treat arg as int, compare against -1
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -891,8 +891,8 @@ static void parse_command_line(int argc, char **argv, struct wl_state *state) { char *layer_name; - char opt; - while ((opt = getopt_long(argc, argv, "hvfpsn:l:o:Z:", long_options, NULL)) != 255) { + int opt; + while ((opt = getopt_long(argc, argv, "hvfpsn:l:o:Z:", long_options, NULL)) != -1) { switch (opt) { case 'h': |