diff options
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 20cb6dd8..e6483b9c 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -135,7 +135,7 @@ main (int argc, char **argv) | |||
135 | asprintf(&address, "%s,%s", address, temp_buffer); | 135 | asprintf(&address, "%s,%s", address, temp_buffer); |
136 | } | 136 | } |
137 | 137 | ||
138 | else if (strstr (input_buffer, "Non-authoritative answer:")) { | 138 | else if (strstr (input_buffer, _("Non-authoritative answer:"))) { |
139 | non_authoritative = TRUE; | 139 | non_authoritative = TRUE; |
140 | } | 140 | } |
141 | 141 | ||
@@ -277,7 +277,6 @@ error_scan (char *input_buffer) | |||
277 | } | 277 | } |
278 | 278 | ||
279 | 279 | ||
280 | |||
281 | /* process command-line arguments */ | 280 | /* process command-line arguments */ |
282 | int | 281 | int |
283 | process_arguments (int argc, char **argv) | 282 | process_arguments (int argc, char **argv) |
@@ -313,9 +312,7 @@ process_arguments (int argc, char **argv) | |||
313 | 312 | ||
314 | switch (c) { | 313 | switch (c) { |
315 | case '?': /* args not parsable */ | 314 | case '?': /* args not parsable */ |
316 | printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); | 315 | usage2 (_("Unknown argument"), optarg); |
317 | print_usage (); | ||
318 | exit (STATE_UNKNOWN); | ||
319 | case 'h': /* help */ | 316 | case 'h': /* help */ |
320 | print_help (); | 317 | print_help (); |
321 | exit (STATE_OK); | 318 | exit (STATE_OK); |
@@ -386,7 +383,6 @@ process_arguments (int argc, char **argv) | |||
386 | } | 383 | } |
387 | 384 | ||
388 | 385 | ||
389 | |||
390 | int | 386 | int |
391 | validate_arguments () | 387 | validate_arguments () |
392 | { | 388 | { |
@@ -397,7 +393,6 @@ validate_arguments () | |||
397 | } | 393 | } |
398 | 394 | ||
399 | 395 | ||
400 | |||
401 | void | 396 | void |
402 | print_help (void) | 397 | print_help (void) |
403 | { | 398 | { |
@@ -432,7 +427,6 @@ specified in /etc/resolv.conf will be used.\n\n")); | |||
432 | } | 427 | } |
433 | 428 | ||
434 | 429 | ||
435 | |||
436 | void | 430 | void |
437 | print_usage (void) | 431 | print_usage (void) |
438 | { | 432 | { |