index be2f562eab81dba4d679f312a893a1ce9e57eb9a..93b2c1d03fa569a9cb9fd6ed8257ae3a9dea74f3 100644 (file)
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
{
int c;
- int option_index = 0;
+ int option = 0;
static struct option longopts[] = {
{"logfile", required_argument, 0, 'F'},
{"expires", required_argument, 0, 'e'},
}
while (1) {
- c = getopt_long (argc, argv, "hVF:e:a:c:w:", longopts, &option_index);
+ c = getopt_long (argc, argv, "hVF:e:a:c:w:", longopts, &option);
if (c == -1 || c == EOF)
break;