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_real.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_real.c')
-rw-r--r-- | plugins/check_real.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/check_real.c b/plugins/check_real.c index 30424656..eb892c77 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c | |||
@@ -330,7 +330,7 @@ process_arguments (int argc, char **argv) | |||
330 | check_critical_time = TRUE; | 330 | check_critical_time = TRUE; |
331 | } | 331 | } |
332 | else { | 332 | else { |
333 | usage4 (_("Critical time must be a nonnegative integer")); | 333 | usage4 (_("Critical time must be a positive integer")); |
334 | } | 334 | } |
335 | break; | 335 | break; |
336 | case 'v': /* verbose */ | 336 | case 'v': /* verbose */ |
@@ -341,7 +341,7 @@ process_arguments (int argc, char **argv) | |||
341 | socket_timeout = atoi (optarg); | 341 | socket_timeout = atoi (optarg); |
342 | } | 342 | } |
343 | else { | 343 | else { |
344 | usage4 (_("Time interval must be a nonnegative integer")); | 344 | usage4 (_("Timeout interval must be a positive integer")); |
345 | } | 345 | } |
346 | break; | 346 | break; |
347 | case 'V': /* version */ | 347 | case 'V': /* version */ |
@@ -351,9 +351,7 @@ process_arguments (int argc, char **argv) | |||
351 | print_help (); | 351 | print_help (); |
352 | exit (STATE_OK); | 352 | exit (STATE_OK); |
353 | case '?': /* usage */ | 353 | case '?': /* usage */ |
354 | printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); | 354 | usage2 (_("Unknown argument"), optarg); |
355 | print_usage (); | ||
356 | exit (STATE_UNKNOWN); | ||
357 | } | 355 | } |
358 | } | 356 | } |
359 | 357 | ||
@@ -368,7 +366,7 @@ process_arguments (int argc, char **argv) | |||
368 | } | 366 | } |
369 | 367 | ||
370 | if (server_address==NULL) | 368 | if (server_address==NULL) |
371 | usage (_("You must provide a server to check\n")); | 369 | usage4 (_("You must provide a server to check")); |
372 | 370 | ||
373 | if (host_name==NULL) | 371 | if (host_name==NULL) |
374 | host_name = strdup (server_address); | 372 | host_name = strdup (server_address); |