From 455e7c1a52ea8ea7322f783d86569e59b84cf0a5 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 29 Jan 2003 04:28:37 +0000 Subject: Error when no params passed, better invalid params message (652086 - Ton Voon) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@262 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_vsz.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/check_vsz.c') diff --git a/plugins/check_vsz.c b/plugins/check_vsz.c index 767abf4f..e6132a0f 100644 --- a/plugins/check_vsz.c +++ b/plugins/check_vsz.c @@ -63,7 +63,7 @@ main (int argc, char **argv) char proc_name[MAX_INPUT_BUFFER]; char *message = ""; - if (!process_arguments (argc, argv)) { + if (process_arguments (argc, argv) == ERROR) { printf ("%s: failure parsing arguments\n", progname); print_help (progname); return STATE_UNKNOWN; @@ -166,7 +166,6 @@ process_arguments (int argc, char **argv) switch (c) { case '?': /* help */ - printf ("%s: Unknown argument: %s\n\n", progname, optarg); print_usage (progname); exit (STATE_UNKNOWN); case 'h': /* help */ -- cgit v1.2.3