summaryrefslogtreecommitdiffstats
path: root/plugins/check_mrtgtraf.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_mrtgtraf.c')
-rw-r--r--plugins/check_mrtgtraf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c
index be2f562e..93b2c1d0 100644
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
@@ -201,7 +201,7 @@ process_arguments (int argc, char **argv)
201{ 201{
202 int c; 202 int c;
203 203
204 int option_index = 0; 204 int option = 0;
205 static struct option longopts[] = { 205 static struct option longopts[] = {
206 {"logfile", required_argument, 0, 'F'}, 206 {"logfile", required_argument, 0, 'F'},
207 {"expires", required_argument, 0, 'e'}, 207 {"expires", required_argument, 0, 'e'},
@@ -228,7 +228,7 @@ process_arguments (int argc, char **argv)
228 } 228 }
229 229
230 while (1) { 230 while (1) {
231 c = getopt_long (argc, argv, "hVF:e:a:c:w:", longopts, &option_index); 231 c = getopt_long (argc, argv, "hVF:e:a:c:w:", longopts, &option);
232 232
233 if (c == -1 || c == EOF) 233 if (c == -1 || c == EOF)
234 break; 234 break;