From 65795be0a9a0cafaecd69229244693c0d77984d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fernando=20Tarl=C3=A1=20Cardoso=20Lemos?= Date: Fri, 29 Jun 2012 10:30:39 -0300 Subject: [PATCH] getopt_long returns int, don't cast to char. On ARM, casting -1 to char turns it into something else. Fixes argument parsing on ARM. Thanks Chipaca for reporting. --- i3lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3lock.c b/i3lock.c index 285c1cf..35eaca6 100644 --- a/i3lock.c +++ b/i3lock.c @@ -550,7 +550,7 @@ int main(int argc, char *argv[]) { struct pam_conv conv = {conv_callback, NULL}; int nscreen; int curs_choice = CURS_NONE; - char o; + int o; int optind = 0; struct option longopts[] = { {"version", no_argument, NULL, 'v'}, -- 2.39.5