summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 80da8e6)
raw | patch | inline | side by side (parent: 80da8e6)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 12 Feb 2003 22:29:43 +0000 (22:29 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 12 Feb 2003 22:29:43 +0000 (22:29 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@322 f882894a-f735-0410-b71e-b25c423dba1c
plugins/negate.c | patch | blob | history |
diff --git a/plugins/negate.c b/plugins/negate.c
index 454ac963570f9705678330d7b7e99b75f4375df6..e10c78dfb5247a65c2d8016c748276e3d121d4ab 100644 (file)
--- a/plugins/negate.c
+++ b/plugins/negate.c
#define SUMMARY "Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n"
#define OPTIONS "\
-\[-t timeout] <definition of wrapped plugin>"
+[-t timeout] <definition of wrapped plugin>"
#define LONGOPTIONS "\
-t, --timeout=INTEGER\n\
char input_buffer[MAX_INPUT_BUFFER];
if (process_arguments (argc, argv) == ERROR)
- usage ("Could not parse arguments");
+ usage ("Could not parse arguments\n");
/* Set signal handling and alarm */
if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR)
int
validate_arguments ()
{
+ if (command_line == NULL)
+ return ERROR;
return STATE_OK;
}
\f