commit 65795be0a9a0cafaecd69229244693c0d77984d5
parent fdf6d7af2a3987f456343367c9071023a593d471
Author: Fernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
Date: Fri, 29 Jun 2012 10:30:39 -0300
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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'},