diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 678d5c80c72c119acfde15f5b660dcc0b9e3b95c..dd49893b8f955011a3e26964bab39113d49f1ee6 100644 (file)
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- if (process_arguments (argc, argv) != TRUE)
+ if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
/* removed ' 2>1' at end of command 10/27/1999 - EG */
}
-
/* process command-line arguments */
int
process_arguments (int argc, char **argv)
print_help ();
exit (STATE_OK);
case '?': /* help */
- printf (_("%s: Unknown argument: %s\n\n"), progname, optarg);
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Unknown argument"), optarg);
}
}
}
-
int
validate_arguments (void)
{
}
-
void
print_help (void)
{
void
print_usage (void)
{
- printf ("Usage: %s -H host [-C community]\n"), progname);
+ printf ("Usage: %s -H host [-C community]\n", progname);
}