summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 +0000
commite9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch)
tree91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/check_dns.c
parent71656b2aafffb69716620bf08cce76c925dc8fa3 (diff)
downloadmonitoring-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.c10
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 */
282int 281int
283process_arguments (int argc, char **argv) 282process_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
390int 386int
391validate_arguments () 387validate_arguments ()
392{ 388{
@@ -397,7 +393,6 @@ validate_arguments ()
397} 393}
398 394
399 395
400
401void 396void
402print_help (void) 397print_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
436void 430void
437print_usage (void) 431print_usage (void)
438{ 432{