summaryrefslogtreecommitdiffstats
path: root/plugins/check_real.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-03-11 22:22:12 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2003-03-11 22:22:12 (GMT)
commit7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3 (patch)
tree371434969644a1d3cc3c5c2c26ee73cd8221aaa4 /plugins/check_real.c
parentd7ba5ec38b51731d4ddc0a7f6e9f30897f70f156 (diff)
downloadmonitoring-plugins-7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3.tar.gz
Remove getopt_long checks
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@396 f882894a-f735-0410-b71e-b25c423dba1c
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;