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)
This commit is contained in:
Erik Auerswald
2009-02-22 00:17:03 +00:00
parent a1a060b416
commit 2700473e76
+1 -1
View File
@@ -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 */