aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2005-09-07 16:46:49 +0800
committerdemon <demon@FreeBSD.org>2005-09-07 16:46:49 +0800
commit0475a0cc22a91b310a428e1dcd08b1f6f4b8eecf (patch)
tree5f133225aaed76df85f30d11a0f060a2d8c4e3af
parent8f26188ee86593768e83d6c342e2e53ac29f16c1 (diff)
downloadfreebsd-ports-gnome-0475a0cc22a91b310a428e1dcd08b1f6f4b8eecf.tar.gz
freebsd-ports-gnome-0475a0cc22a91b310a428e1dcd08b1f6f4b8eecf.tar.zst
freebsd-ports-gnome-0475a0cc22a91b310a428e1dcd08b1f6f4b8eecf.zip
Fix build of check_snmp plugin on 4-STABLE.
Approved by: maintainer
-rw-r--r--net-mgmt/nagios-plugins/files/patch-check_snmp.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-check_snmp.c b/net-mgmt/nagios-plugins/files/patch-check_snmp.c
new file mode 100644
index 000000000000..7cc1009fad62
--- /dev/null
+++ b/net-mgmt/nagios-plugins/files/patch-check_snmp.c
@@ -0,0 +1,18 @@
+--- plugins/check_snmp.c.orig Wed Sep 7 12:35:57 2005
++++ plugins/check_snmp.c Wed Sep 7 12:43:03 2005
+@@ -141,6 +141,7 @@
+ char *p2 = NULL;
+ char *show = NULL;
+ char type[8];
++ char *str[MAX_INPUT_BUFFER];
+
+ setlocale (LC_ALL, ""); setlocale(LC_NUMERIC, "C");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+@@ -338,7 +339,6 @@
+
+ i++;
+
+- char *str[MAX_INPUT_BUFFER];
+ asprintf(str, "=%s%s;;;; ", show, type ? type : "");
+ strcat(perfstr, *str);
+