diff options
Diffstat (limited to 'plugins/check_ping.c')
| -rw-r--r-- | plugins/check_ping.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 2d7e24d4..074519d3 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c | |||
| @@ -270,8 +270,7 @@ process_arguments (int argc, char **argv) | |||
| 270 | 270 | ||
| 271 | if (addresses[0] == NULL) { | 271 | if (addresses[0] == NULL) { |
| 272 | if (is_host (argv[c]) == FALSE) { | 272 | if (is_host (argv[c]) == FALSE) { |
| 273 | printf (_("Invalid host name/address: %s\n\n"), argv[c]); | 273 | usage2 (_("Invalid host name/address"), argv[c]); |
| 274 | return ERROR; | ||
| 275 | } else { | 274 | } else { |
| 276 | addresses[0] = argv[c++]; | 275 | addresses[0] = argv[c++]; |
| 277 | n_addresses++; | 276 | n_addresses++; |
| @@ -506,8 +505,8 @@ print_help (void) | |||
| 506 | { | 505 | { |
| 507 | print_revision (progname, revision); | 506 | print_revision (progname, revision); |
| 508 | 507 | ||
| 509 | printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>")); | 508 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"); |
| 510 | printf (_(COPYRIGHT), copyright, email); | 509 | printf (COPYRIGHT, copyright, email); |
| 511 | 510 | ||
| 512 | printf (_("Use ping to check connection statistics for a remote host.\n\n")); | 511 | printf (_("Use ping to check connection statistics for a remote host.\n\n")); |
| 513 | 512 | ||
