Fix check_dhcp.
PR: 196964 Submitted by: Rudolf Čejka Sponsored by: Absolight
This commit is contained in:
parent
9b5d5f0f36
commit
fbf834afa3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377599
4 changed files with 26 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= monitoring-plugins
|
PORTNAME= monitoring-plugins
|
||||||
PORTVERSION= 2.0
|
PORTVERSION= 2.0
|
||||||
PORTREVISION= 6
|
PORTREVISION= 7
|
||||||
CATEGORIES= net-mgmt
|
CATEGORIES= net-mgmt
|
||||||
MASTER_SITES= https://www.monitoring-plugins.org/download/ LOCAL/mat/${PORTNAME}
|
MASTER_SITES= https://www.monitoring-plugins.org/download/ LOCAL/mat/${PORTNAME}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
--- plugins-root/check_dhcp.c.orig 2014-07-06 17:55:03 UTC
|
||||||
|
+++ plugins-root/check_dhcp.c
|
||||||
|
@@ -323,7 +323,8 @@ int get_hardware_address(int sock,char *
|
||||||
|
#elif defined(__bsd__)
|
||||||
|
/* King 2004 see ACKNOWLEDGEMENTS */
|
||||||
|
|
||||||
|
- int mib[6], len;
|
||||||
|
+ int mib[6];
|
||||||
|
+ size_t len;
|
||||||
|
char *buf;
|
||||||
|
unsigned char *ptr;
|
||||||
|
struct if_msghdr *ifm;
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= nagios-plugins
|
PORTNAME= nagios-plugins
|
||||||
PORTVERSION= 2.0.3
|
PORTVERSION= 2.0.3
|
||||||
PORTREVISION= 7
|
PORTREVISION= 8
|
||||||
PORTEPOCH= 1
|
PORTEPOCH= 1
|
||||||
CATEGORIES= net-mgmt
|
CATEGORIES= net-mgmt
|
||||||
MASTER_SITES= https://www.nagios-plugins.org/download/ \
|
MASTER_SITES= https://www.nagios-plugins.org/download/ \
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
--- plugins-root/check_dhcp.c.orig 2014-06-26 16:17:12 UTC
|
||||||
|
+++ plugins-root/check_dhcp.c
|
||||||
|
@@ -326,7 +326,8 @@ int get_hardware_address(int sock,char *
|
||||||
|
#elif defined(__bsd__)
|
||||||
|
/* King 2004 see ACKNOWLEDGEMENTS */
|
||||||
|
|
||||||
|
- int mib[6], len;
|
||||||
|
+ int mib[6];
|
||||||
|
+ size_t len;
|
||||||
|
char *buf;
|
||||||
|
unsigned char *ptr;
|
||||||
|
struct if_msghdr *ifm;
|
Loading…
Reference in a new issue