diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-05-15 13:07:20 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-05-15 13:07:20 +0000 |
commit | 28f968e38aecfca99842a5c484bf9436ba947619 (patch) | |
tree | 078e69ebce82ed0d478c472fee2936a8cd1b7d9b /net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c | |
parent | - Update to 0.8.6.20060514 (diff) |
Update to Nagios Plugins 1.4.3:
- Variable ordering and style realigned with bsd.port.mk
- Moved manual pre-configure aclocal call to use bsd.autotools.mk (with manual
tweak to ACLOCAL_ARGS required)
- Listed resulting plug-in name in user configurable options
- Removed remaining hard-coded variables including local state directory
- Correctly identified location of Perl to configure script
- Removed setlocale (LC_NUMERIC, "C") patch to plug-ins containing scanf(3) and
an already defined LC_NUMERIC
- Reworked all patches (named using make makepatch)
- Corrected minor warning in check_ntp.pl regarding undefined use of $jitter
PR: ports/97189
Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
Notes
Notes:
svn path=/head/; revision=162435
Diffstat (limited to 'net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c')
-rw-r--r-- | net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c b/net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c new file mode 100644 index 000000000000..542204fb8a9d --- /dev/null +++ b/net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c @@ -0,0 +1,18 @@ +--- plugins/check_snmp.c.orig Tue Nov 1 06:33:19 2005 ++++ plugins/check_snmp.c Fri May 12 23:29:24 2006 +@@ -206,6 +206,7 @@ + strcat(perfstr, "| "); + while (ptr) { + char *foo; ++ char *str[MAX_INPUT_BUFFER]; + + foo = strstr (ptr, delimiter); + strncat(perfstr, ptr, foo-ptr); +@@ -338,7 +339,6 @@ + + i++; + +- char *str[MAX_INPUT_BUFFER]; + asprintf(str, "=%s%s;;;; ", show, type ? type : ""); + strcat(perfstr, *str); + |