This is a multi-part message in MIME format.
--------------090708020309090006070603
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi
Attached is a patch against nagios-plugins-1.4.3 which allows it to
compile against older/'pickier' compilers. For older compilers,
variable declarations have to be at the top of a block. With this, I am
happily using the latest nrpe and plugins on a RH 7.2 box.
David
--------------090708020309090006070603
Content-Type: text/x-patch;
name="nagios-check-snmp-c-initializer.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="nagios-check-snmp-c-initializer.patch"
--- nagios-plugins-1.4.3/plugins/check_snmp.c.origi Fri Apr 28 11:56:15 2006
+++ nagios-plugins-1.4.3/plugins/check_snmp.c Fri Apr 28 11:57:20 2006
@@ -337,10 +337,11 @@
asprintf (&outbuff, "%s %s", outbuff, unitv);
i++;
-
- char *str[MAX_INPUT_BUFFER];
- asprintf(str, "=%s%s;;;; ", show, type ? type : "");
- strcat(perfstr, *str);
+ {
+ char *str[MAX_INPUT_BUFFER];
+ asprintf(str, "=%s%s;;;; ", show, type ? type : "");
+ strcat(perfstr, *str);
+ }
} /* end while (ptr) */
--------------090708020309090006070603--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]