1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2025-02-24 16:06:26 -05:00

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.
This commit is contained in:
Fernando Tarlá Cardoso Lemos 2012-06-29 10:30:39 -03:00 committed by Michael Stapelberg
parent fdf6d7af2a
commit 65795be0a9

View file

@ -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'},