diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-25 23:17:46 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-25 23:17:46 +0000 |
commit | e9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch) | |
tree | 91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/check_dns.c | |
parent | 71656b2aafffb69716620bf08cce76c925dc8fa3 (diff) | |
download | monitoring-plugins-e9ccc6b21a1152bbf150302c4a29a6df79d75bd7.tar.gz |
various fixes for localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c
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 | { |