Code

the last round of pedantic compiler warnings
[nagiosplug.git] / plugins / check_ups.c
index fcee747770ff00b30b9007a33cc8b600b0850225..7e7b36a4b01882e3b429d148618b2679fd19934c 100644 (file)
@@ -400,8 +400,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[] = {
                {"hostname", required_argument, 0, 'H'},
                {"ups", required_argument, 0, 'u'},
                {"port", required_argument, 0, 'p'},
@@ -427,8 +427,8 @@ process_arguments (int argc, char **argv)
        }
 
        while (1) {
-               c = getopt_long (argc, argv, "hVH:u:p:v:c:w:t:", long_options,
-                                                                        &option_index);
+               c = getopt_long (argc, argv, "hVH:u:p:v:c:w:t:", longopts,
+                                                                        &option);
 
                if (c == -1 || c == EOF)
                        break;