aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_vsz.c
diff options
context:
space:
mode:
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 */