diff options
Diffstat (limited to 'plugins/check_fping.c')
-rw-r--r-- | plugins/check_fping.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 7f05d4d5..5ffcd16e 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c | |||
@@ -242,9 +242,7 @@ process_arguments (int argc, char **argv) | |||
242 | 242 | ||
243 | switch (c) { | 243 | switch (c) { |
244 | case '?': /* print short usage statement if args not parsable */ | 244 | case '?': /* print short usage statement if args not parsable */ |
245 | printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); | 245 | usage2 (_("Unknown argument"), optarg); |
246 | print_usage (); | ||
247 | exit (STATE_UNKNOWN); | ||
248 | case 'h': /* help */ | 246 | case 'h': /* help */ |
249 | print_help (); | 247 | print_help (); |
250 | exit (STATE_OK); | 248 | exit (STATE_OK); |
@@ -301,15 +299,13 @@ process_arguments (int argc, char **argv) | |||
301 | } | 299 | } |
302 | } | 300 | } |
303 | 301 | ||
304 | |||
305 | if (server_name == NULL) | 302 | if (server_name == NULL) |
306 | usage (_("Hostname was not supplied\n\n")); | 303 | usage4 (_("Hostname was not supplied")); |
307 | 304 | ||
308 | return OK; | 305 | return OK; |
309 | } | 306 | } |
310 | 307 | ||
311 | 308 | ||
312 | |||
313 | int | 309 | int |
314 | get_threshold (char *arg, char *rv[2]) | 310 | get_threshold (char *arg, char *rv[2]) |
315 | { | 311 | { |
@@ -351,7 +347,6 @@ get_threshold (char *arg, char *rv[2]) | |||
351 | } | 347 | } |
352 | 348 | ||
353 | 349 | ||
354 | |||
355 | void | 350 | void |
356 | print_help (void) | 351 | print_help (void) |
357 | { | 352 | { |
@@ -395,7 +390,6 @@ percentage of packet loss to trigger an alarm state.\n")); | |||
395 | } | 390 | } |
396 | 391 | ||
397 | 392 | ||
398 | |||
399 | void | 393 | void |
400 | print_usage (void) | 394 | print_usage (void) |
401 | { | 395 | { |