diff options
Diffstat (limited to 'plugins/check_overcr.c')
-rw-r--r-- | plugins/check_overcr.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c index 9bf40d3c..a4abf2b9 100644 --- a/plugins/check_overcr.c +++ b/plugins/check_overcr.c | |||
@@ -272,17 +272,9 @@ main (int argc, char **argv) | |||
272 | die (STATE_UNKNOWN, _("Nothing to check!\n")); | 272 | die (STATE_UNKNOWN, _("Nothing to check!\n")); |
273 | break; | 273 | break; |
274 | } | 274 | } |
275 | |||
276 | /* reset timeout */ | ||
277 | /* alarm (0); */ | ||
278 | |||
279 | /* printf (_("Reached end of program with no data returned\n")); */ | ||
280 | |||
281 | /* return result; */ | ||
282 | } | 275 | } |
283 | 276 | ||
284 | 277 | ||
285 | |||
286 | /* process command-line arguments */ | 278 | /* process command-line arguments */ |
287 | int | 279 | int |
288 | process_arguments (int argc, char **argv) | 280 | process_arguments (int argc, char **argv) |
@@ -332,9 +324,7 @@ process_arguments (int argc, char **argv) | |||
332 | 324 | ||
333 | switch (c) { | 325 | switch (c) { |
334 | case '?': /* print short usage statement if args not parsable */ | 326 | case '?': /* print short usage statement if args not parsable */ |
335 | printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); | 327 | usage2 (_("Unknown argument"), optarg); |
336 | print_usage (); | ||
337 | exit (STATE_UNKNOWN); | ||
338 | case 'h': /* help */ | 328 | case 'h': /* help */ |
339 | print_help (); | 329 | print_help (); |
340 | exit (STATE_OK); | 330 | exit (STATE_OK); |
@@ -349,8 +339,7 @@ process_arguments (int argc, char **argv) | |||
349 | server_port = atoi (optarg); | 339 | server_port = atoi (optarg); |
350 | else | 340 | else |
351 | die (STATE_UNKNOWN, | 341 | die (STATE_UNKNOWN, |
352 | _("Server port an integer (seconds)\nType '%s -h' for additional help\n"), | 342 | _("Server port an integer\n")); |
353 | progname); | ||
354 | break; | 343 | break; |
355 | case 'v': /* variable */ | 344 | case 'v': /* variable */ |
356 | if (strcmp (optarg, "LOAD") == 0) { | 345 | if (strcmp (optarg, "LOAD") == 0) { |
@@ -403,7 +392,6 @@ process_arguments (int argc, char **argv) | |||
403 | } | 392 | } |
404 | 393 | ||
405 | 394 | ||
406 | |||
407 | void | 395 | void |
408 | print_help (void) | 396 | print_help (void) |
409 | { | 397 | { |
@@ -459,7 +447,6 @@ Notes:\n\ | |||
459 | } | 447 | } |
460 | 448 | ||
461 | 449 | ||
462 | |||
463 | void | 450 | void |
464 | print_usage (void) | 451 | print_usage (void) |
465 | { | 452 | { |