summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
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;