[Nagiosplug-checkins] nagiosplug/plugins check_ping.c,1.42,1.43

M. Sean Finney seanius at users.sourceforge.net
Mon May 2 19:02:00 CEST 2005


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

Modified Files:
	check_ping.c 
Log Message:
setlocale(LC_ALL, "") should be setlocale(LC_NUMERIC, "C") to properly parse the output of ping.


Index: check_ping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- check_ping.c	30 Dec 2004 00:41:39 -0000	1.42
+++ check_ping.c	3 May 2005 02:00:51 -0000	1.43
@@ -71,7 +71,7 @@
 	int this_result = STATE_UNKNOWN;
 	int i;
 
-	setlocale (LC_ALL, "");
+	setlocale (LC_NUMERIC, "C");
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 





More information about the Commits mailing list