Code

Error when no params passed, better invalid params message (652086 - Ton Voon)
authorTon Voon <tonvoon@users.sourceforge.net>
Wed, 29 Jan 2003 04:28:37 +0000 (04:28 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Wed, 29 Jan 2003 04:28:37 +0000 (04:28 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@262 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_vsz.c

index 767abf4fd6d4d3be28dfaeaebad1cb72e879210c..e6132a0f5836725c3496d45558434ecebc9caee6 100644 (file)
@@ -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 */