diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index 21efac2e901f32c22e64d49c96c3dd3eb3841a87..849e636fce964dd4c5e9e2c9c170176a1f88a195 100644 (file)
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
{
int c;
- int option_index = 0;
- static struct option long_options[] = {
+ int option = 0;
+ static struct option longopts[] = {
{"logfile", required_argument, 0, 'F'},
{"expires", required_argument, 0, 'e'},
{"aggregation", required_argument, 0, 'a'},
}
while (1) {
- c = getopt_long (argc, argv, "hVF:e:a:v:c:w:l:u:", long_options,
- &option_index);
+ c = getopt_long (argc, argv, "hVF:e:a:v:c:w:l:u:", longopts,
+ &option);
if (c == -1 || c == EOF)
break;