diff --git a/plugins/negate.c b/plugins/negate.c
index e03f7e682350bf856a45de86cef0fe72f1a35a70..d08c3a309e30b868cd6dc7a51c0655d48797c5ee 100644 (file)
--- a/plugins/negate.c
+++ b/plugins/negate.c
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- if (process_arguments (argc, argv) != TRUE)
+ if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
/* Set signal handling and alarm */
switch (c) {
case '?': /* help */
- printf (_("%s: Unknown argument: %s\n\n"), progname, optarg);
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Unknown argument"), optarg);
break;
case 'h': /* help */
print_help ();
{
print_revision (progname, revision);
- printf (_(COPYRIGHT), copyright, email);
+ printf (COPYRIGHT, copyright, email);
printf (_("\
-Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n\
-\n"));
+Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n\n"));
print_usage ();
void
print_usage (void)
{
- printf ("Usage: %s [-t timeout] <definition of wrapped plugin>\n",
- progname);
-
- printf (UT_HLP_VRS, progname, progname);
+ printf ("Usage: %s [-t timeout] <definition of wrapped plugin>\n",progname);
}