aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_vsz.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-01-29 04:28:37 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-01-29 04:28:37 +0000
commit455e7c1a52ea8ea7322f783d86569e59b84cf0a5 (patch)
tree2094ba0377c72d68fdf1152f3855366472b6075a /plugins/check_vsz.c
parent4ad2c31c4e157d6392e9846debdfaf38e1cdda30 (diff)
downloadmonitoring-plugins-455e7c1a52ea8ea7322f783d86569e59b84cf0a5.tar.gz
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
Diffstat (limited to 'plugins/check_vsz.c')
-rw-r--r--plugins/check_vsz.c3
1 files changed, 1 insertions, 2 deletions
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 */