[Nagiosplug-checkins] nagiosplug/plugins check_snmp.c,1.58,1.59

Ton Voon tonvoon at users.sourceforge.net
Wed May 24 02:06:04 CEST 2006


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

Modified Files:
	check_snmp.c 
Log Message:
Variables need to be declared at top of code for better portability
(Gerhard Lausser)


Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- check_snmp.c	31 Oct 2005 20:03:19 -0000	1.58
+++ check_snmp.c	24 May 2006 09:05:35 -0000	1.59
@@ -141,6 +141,7 @@
 	char *p2 = NULL;
 	char *show = NULL;
 	char type[8];
+	char *str[MAX_INPUT_BUFFER];
 
 	setlocale (LC_ALL, "");
 	bindtextdomain (PACKAGE, LOCALEDIR);
@@ -338,7 +339,6 @@
 
 		i++;
 
-		char *str[MAX_INPUT_BUFFER];
 		asprintf(str, "=%s%s;;;; ", show, type ? type : "");
 		strcat(perfstr, *str);
 





More information about the Commits mailing list