Code

the last round of pedantic compiler warnings
[nagiosplug.git] / plugins / check_udp.c
index bd5de5864d7c97e4d0fa6a57adcb347de41a3ab5..5aaf3a7924240a26fcf4a390878837d68944194c 100644 (file)
@@ -105,8 +105,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'},
                {"critical", required_argument, 0, 'c'},
                {"warning", required_argument, 0, 'w'},
@@ -133,7 +133,7 @@ process_arguments (int argc, char **argv)
        }
 
        while (1) {
-               c = getopt_long (argc, argv, "+hVvH:e:s:c:w:t:p:", long_options, &option_index);
+               c = getopt_long (argc, argv, "+hVvH:e:s:c:w:t:p:", longopts, &option);
 
                if (c == -1 || c == EOF || c == 1)
                        break;