diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index fcee747770ff00b30b9007a33cc8b600b0850225..7e7b36a4b01882e3b429d148618b2679fd19934c 100644 (file)
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
{
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'},
}
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;