Code

the last round of pedantic compiler warnings
[nagiosplug.git] / plugins / check_users.c
index 9e182015e21c6c07e4df41303d1b1cfe910bc8d3..9f308bc3f9b76fe038e59c5f0fa7355434dfd264 100644 (file)
@@ -107,8 +107,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[] = {
                {"critical", required_argument, 0, 'c'},
                {"warning", required_argument, 0, 'w'},
                {"version", no_argument, 0, 'V'},
@@ -120,7 +120,7 @@ process_arguments (int argc, char **argv)
                usage ("\n");
 
        while (1) {
-               c = getopt_long (argc, argv, "+hVvc:w:", long_options, &option_index);
+               c = getopt_long (argc, argv, "+hVvc:w:", longopts, &option);
 
                if (c == -1 || c == EOF || c == 1)
                        break;