diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index fd73b8cef8eb8f55d7f2e9506825d6cf7291a16a..87f9db011d83bede362ff8fbe1efdd03d870d5d2 100644 (file)
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
int c = 1;
char *ptr;
- int option_index = 0;
- static struct option long_options[] = {
+ int option = 0;
+ static struct option longopts[] = {
STD_LONG_OPTS,
{"packets", required_argument, 0, 'p'},
{"nohtml", no_argument, 0, 'n'},
}
while (1) {
- c = getopt_long (argc, argv, "VvhnL46t:c:w:H:p:", long_options, &option_index);
+ c = getopt_long (argc, argv, "VvhnL46t:c:w:H:p:", longopts, &option);
if (c == -1 || c == EOF)
break;