Explorar o código

patch attempt to reference undefined optarg (credit Paul Farrall)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@612 f882894a-f735-0410-b71e-b25c423dba1c
Karl DeBisschop %!s(int64=22) %!d(string=hai) anos
pai
achega
2ea2edbd8b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/check_http.c

+ 1 - 1
plugins/check_http.c

@@ -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 ();