summaryrefslogtreecommitdiffstats
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 767abf4..e6132a0 100644
--- a/plugins/check_vsz.c
+++ b/plugins/check_vsz.c
@@ -63,7 +63,7 @@ main (int argc, char **argv)
63 char proc_name[MAX_INPUT_BUFFER]; 63 char proc_name[MAX_INPUT_BUFFER];
64 char *message = ""; 64 char *message = "";
65 65
66 if (!process_arguments (argc, argv)) { 66 if (process_arguments (argc, argv) == ERROR) {
67 printf ("%s: failure parsing arguments\n", progname); 67 printf ("%s: failure parsing arguments\n", progname);
68 print_help (progname); 68 print_help (progname);
69 return STATE_UNKNOWN; 69 return STATE_UNKNOWN;
@@ -166,7 +166,6 @@ process_arguments (int argc, char **argv)
166 166
167 switch (c) { 167 switch (c) {
168 case '?': /* help */ 168 case '?': /* help */
169 printf ("%s: Unknown argument: %s\n\n", progname, optarg);
170 print_usage (progname); 169 print_usage (progname);
171 exit (STATE_UNKNOWN); 170 exit (STATE_UNKNOWN);
172 case 'h': /* help */ 171 case 'h': /* help */