Code

the last round of pedantic compiler warnings
[nagiosplug.git] / plugins / check_mrtgtraf.c
index be2f562eab81dba4d679f312a893a1ce9e57eb9a..93b2c1d03fa569a9cb9fd6ed8257ae3a9dea74f3 100644 (file)
@@ -201,7 +201,7 @@ process_arguments (int argc, char **argv)
 {
        int c;
 
-       int option_index = 0;
+       int option = 0;
        static struct option longopts[] = {
                {"logfile", required_argument, 0, 'F'},
                {"expires", required_argument, 0, 'e'},
@@ -228,7 +228,7 @@ process_arguments (int argc, char **argv)
        }
 
        while (1) {
-               c = getopt_long (argc, argv, "hVF:e:a:c:w:", longopts, &option_index);
+               c = getopt_long (argc, argv, "hVF:e:a:c:w:", longopts, &option);
 
                if (c == -1 || c == EOF)
                        break;