[Nagiosplug-checkins] nagiosplug/plugins check_http.c,1.78,1.79

Benoit Mortier opensides at users.sourceforge.net
Thu Dec 23 10:55:06 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9173/plugins

Modified Files:
	check_http.c 
Log Message:

internationalization fixes



Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- check_http.c	8 Dec 2004 00:36:19 -0000	1.78
+++ check_http.c	23 Dec 2004 18:54:24 -0000	1.79
@@ -251,9 +251,7 @@
 
 		switch (c) {
 		case '?': /* usage */
-			printf (_("%s: Unknown argument: %s\n\n"), progname, optarg);
-			print_usage ();
-			exit (STATE_UNKNOWN);
+			usage2 (_("Unknown argument"), optarg);
 			break;
 		case 'h': /* help */
 			print_help ();
@@ -299,7 +297,7 @@
 			break;
 		case 'S': /* use SSL */
 #ifndef HAVE_SSL
-			usage (_("check_http: invalid option - SSL is not available\n"));
+			usage4 (_("Invalid option - SSL is not available"));
 #endif
 			use_ssl = TRUE;
 			if (specify_port == FALSE)
@@ -314,7 +312,7 @@
 				check_cert = TRUE;
 			}
 #else
-			usage (_("Invalid option - SSL is not available\n"));
+			usage4 (_("Invalid option - SSL is not available"));
 #endif
 			break;
 		case 'f': /* onredirect */





More information about the Commits mailing list