mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix compiler warnings.
This commit is contained in:
@@ -114,6 +114,8 @@ void dhcp6_packet(time_t now)
|
|||||||
unsigned short port;
|
unsigned short port;
|
||||||
struct in6_addr dst_addr;
|
struct in6_addr dst_addr;
|
||||||
|
|
||||||
|
memset(&dst_addr, 0, sizeof(dst_addr));
|
||||||
|
|
||||||
msg.msg_control = control_u.control6;
|
msg.msg_control = control_u.control6;
|
||||||
msg.msg_controllen = sizeof(control_u);
|
msg.msg_controllen = sizeof(control_u);
|
||||||
msg.msg_flags = 0;
|
msg.msg_flags = 0;
|
||||||
|
|||||||
@@ -577,7 +577,7 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
|
|||||||
{
|
{
|
||||||
int address_assigned = 0;
|
int address_assigned = 0;
|
||||||
/* tags without all prefix-class tags */
|
/* tags without all prefix-class tags */
|
||||||
struct dhcp_netid *solicit_tags = tagif;
|
struct dhcp_netid *solicit_tags;
|
||||||
struct dhcp_context *c;
|
struct dhcp_context *c;
|
||||||
|
|
||||||
*outmsgtypep = DHCP6ADVERTISE;
|
*outmsgtypep = DHCP6ADVERTISE;
|
||||||
@@ -593,7 +593,8 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
|
|||||||
log6_packet(&state, "DHCPSOLICIT", NULL, ignore ? _("ignored") : NULL);
|
log6_packet(&state, "DHCPSOLICIT", NULL, ignore ? _("ignored") : NULL);
|
||||||
|
|
||||||
request_no_address:
|
request_no_address:
|
||||||
|
solicit_tags = tagif;
|
||||||
|
|
||||||
if (ignore)
|
if (ignore)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user