mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-10 04:36:37 +02:00
17 lines
465 B
Diff
17 lines
465 B
Diff
getopt returns an int.
|
|
on non-x86 architectures where char is unsigned, this breaks starting the
|
|
compositor
|
|
(i think)
|
|
diff --git a/main.c b/main.c
|
|
index 50288b0..a6b03ed 100644
|
|
--- a/main.c
|
|
+++ b/main.c
|
|
@@ -144,7 +144,7 @@ parse_options(int argc, char **argv, struct options *options)
|
|
char *config_path = NULL;
|
|
char *autostart = NULL;
|
|
|
|
- char flag;
|
|
+ int flag;
|
|
while ((flag = getopt(argc, argv, "vhc:a:")) != -1) {
|
|
switch (flag) {
|
|
case 'a':
|