diff options
author | Thomas Markwalder <tmark@isc.org> | 2020-07-30 10:01:36 -0400 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2020-10-07 10:41:45 +0000 |
commit | 6c7e61578b1b449272dbb40dd8b98d03dad8a57a (patch) | |
tree | afe6dd3922c199a1a419c1fb5634a76745c961c1 /client | |
parent | 812cd4a7f8032047a3daa18e4f505efb146c687e (diff) | |
download | isc-dhcp-117-isc-dhcp-does-not-build-with-gcc10.tar.gz |
[#117] Fixed gcc 10 compilation issues147-keama-doesn-t-build-on-free-bsd-12-1117-isc-dhcp-does-not-build-with-gcc10
client/dhclient.c
relay/dhcrelay.c
extern'ed local_port,remote_port
common/discover.c
init local_port,remote_port to 0
server/mdb.c
extern'ed dhcp_type_host
server/mdb6.c
create_prefix6() - eliminated memcpy string overflow error
Diffstat (limited to 'client')
-rw-r--r-- | client/dhclient.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/dhclient.c b/client/dhclient.c index 189e5270..7a7837cb 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -83,8 +83,9 @@ static const char message [] = "Internet Systems Consortium DHCP Client"; static const char url [] = "For info, please visit https://www.isc.org/software/dhcp/"; #endif /* UNIT_TEST */ -u_int16_t local_port = 0; -u_int16_t remote_port = 0; +extern u_int16_t local_port; +extern u_int16_t remote_port; + #if defined(DHCPv6) && defined(DHCP4o6) int dhcp4o6_state = -1; /* -1 = stopped, 0 = polling, 1 = started */ #endif |