From 2700473e76fa898fba0fcfa367b7e9138e8c6c19 Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Sun, 22 Feb 2009 00:17:03 +0000 Subject: [PATCH] use the correct type of variable (int) to store the reutn value of getopt_long() (this helps portability as well -- otherwise architecures with char == unsigned char would not be able to parse the options) --- ssocr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssocr.c b/ssocr.c index b069649..848b3ee 100644 --- a/ssocr.c +++ b/ssocr.c @@ -75,7 +75,7 @@ int main(int argc, char **argv) /* parse command line */ while (1) { int option_index = 0; - char c; + int c; static struct option long_options[] = { {"help", 0, 0, 'h'}, /* print help */ {"version", 0, 0, 'V'}, /* show version */