Code

patch attempt to reference undefined optarg (credit Paul Farrall)
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>
Tue, 29 Jul 2003 03:05:50 +0000 (03:05 +0000)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>
Tue, 29 Jul 2003 03:05:50 +0000 (03:05 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@612 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_http.c

index 038ac68ad51c12dd0280e56fd1aed03d0031366d..2f693328a7e597d549b9813cd3a4721675f280b4 100644 (file)
@@ -348,7 +348,7 @@ process_arguments (int argc, char **argv)
 
                switch (c) {
                case '?': /* usage */
-                       usage2 ("unknown argument", optarg);
+                       usage3 ("unknown argument", optopt);
                        break;
                case 'h': /* help */
                        print_help ();