summaryrefslogtreecommitdiffstats
path: root/plugins/check_real.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_real.c')
-rw-r--r--plugins/check_real.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/check_real.c b/plugins/check_real.c
index ef3581b..6b484ea 100644
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
@@ -274,7 +274,6 @@ process_arguments (int argc, char **argv)
274{ 274{
275 int c; 275 int c;
276 276
277#ifdef HAVE_GETOPT_H
278 int option_index = 0; 277 int option_index = 0;
279 static struct option long_options[] = { 278 static struct option long_options[] = {
280 {"hostname", required_argument, 0, 'H'}, 279 {"hostname", required_argument, 0, 'H'},
@@ -290,7 +289,6 @@ process_arguments (int argc, char **argv)
290 {"help", no_argument, 0, 'h'}, 289 {"help", no_argument, 0, 'h'},
291 {0, 0, 0, 0} 290 {0, 0, 0, 0}
292 }; 291 };
293#endif
294 292
295 if (argc < 2) 293 if (argc < 2)
296 return ERROR; 294 return ERROR;
@@ -305,13 +303,8 @@ process_arguments (int argc, char **argv)
305 } 303 }
306 304
307 while (1) { 305 while (1) {
308#ifdef HAVE_GETOPT_H 306 c = getopt_long (argc, argv, "+hVI:H:e:u:p:w:c:t:", long_options,
309 c =
310 getopt_long (argc, argv, "+hVI:H:e:u:p:w:c:t:", long_options,
311 &option_index); 307 &option_index);
312#else
313 c = getopt (argc, argv, "+?hVI:H:e:u:p:w:c:t");
314#endif
315 308
316 if (c == -1 || c == EOF) 309 if (c == -1 || c == EOF)
317 break; 310 break;