summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.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_dns.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_dns.c')
-rw-r--r--plugins/check_dns.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index ac62c45..7c79893 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -262,7 +262,6 @@ process_arguments (int argc, char **argv)
262{ 262{
263 int c; 263 int c;
264 264
265#ifdef HAVE_GETOPT_H
266 int opt_index = 0; 265 int opt_index = 0;
267 static struct option long_opts[] = { 266 static struct option long_opts[] = {
268 {"help", no_argument, 0, 'h'}, 267 {"help", no_argument, 0, 'h'},
@@ -275,7 +274,6 @@ process_arguments (int argc, char **argv)
275 {"expected-address", required_argument, 0, 'a'}, 274 {"expected-address", required_argument, 0, 'a'},
276 {0, 0, 0, 0} 275 {0, 0, 0, 0}
277 }; 276 };
278#endif
279 277
280 if (argc < 2) 278 if (argc < 2)
281 return ERROR; 279 return ERROR;
@@ -285,11 +283,7 @@ process_arguments (int argc, char **argv)
285 strcpy (argv[c], "-t"); 283 strcpy (argv[c], "-t");
286 284
287 while (1) { 285 while (1) {
288#ifdef HAVE_GETOPT_H
289 c = getopt_long (argc, argv, "hVvt:H:s:r:a:", long_opts, &opt_index); 286 c = getopt_long (argc, argv, "hVvt:H:s:r:a:", long_opts, &opt_index);
290#else
291 c = getopt (argc, argv, "hVvt:H:s:r:a:");
292#endif
293 287
294 if (c == -1 || c == EOF) 288 if (c == -1 || c == EOF)
295 break; 289 break;