diff options
author | demon <demon@FreeBSD.org> | 2005-09-07 16:46:49 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2005-09-07 16:46:49 +0800 |
commit | 0475a0cc22a91b310a428e1dcd08b1f6f4b8eecf (patch) | |
tree | 5f133225aaed76df85f30d11a0f060a2d8c4e3af | |
parent | 8f26188ee86593768e83d6c342e2e53ac29f16c1 (diff) | |
download | freebsd-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.c | 18 |
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); + |