Code

the last round of pedantic compiler warnings
[nagiosplug.git] / plugins / check_overcr.c
index 9958432e1c8edbc213b1f6877166a15d6bfc08ba..67fb5d1f7403a2348eefa410b6dd35ca841b09b5 100644 (file)
@@ -285,8 +285,8 @@ process_arguments (int argc, char **argv)
 {
        int c;
 
-       int option_index = 0;
-       static struct option long_options[] = {
+       int option = 0;
+       static struct option longopts[] = {
                {"port", required_argument, 0, 'p'},
                {"timeout", required_argument, 0, 't'},
                {"critical", required_argument, 0, 'c'},
@@ -320,8 +320,8 @@ process_arguments (int argc, char **argv)
        }
 
        while (1) {
-               c = getopt_long (argc, argv, "+hVH:t:c:w:p:v:", long_options,
-                                                                        &option_index);
+               c = getopt_long (argc, argv, "+hVH:t:c:w:p:v:", longopts,
+                                                                        &option);
 
                if (c == -1 || c == EOF || c == 1)
                        break;