mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
Clean up some compiler warnings
This commit is contained in:
@@ -4226,7 +4226,7 @@ dhcpv6_confirm(struct data_string *reply_ret, struct packet *packet) {
|
||||
isc_boolean_t inappropriate, has_addrs;
|
||||
char reply_data[65536];
|
||||
struct dhcpv6_packet *reply = (struct dhcpv6_packet *)reply_data;
|
||||
int reply_ofs = (int)((char *)reply->options - (char *)reply);
|
||||
int reply_ofs = (int)(offsetof(struct dhcpv6_packet, options));
|
||||
|
||||
/*
|
||||
* Basic client message validation.
|
||||
@@ -4583,7 +4583,7 @@ iterate_over_ia_na(struct data_string *reply_ret,
|
||||
int iaaddr_is_found;
|
||||
char reply_data[65536];
|
||||
struct dhcpv6_packet *reply = (struct dhcpv6_packet *)reply_data;
|
||||
int reply_ofs = (int)((char *)reply->options - (char *)reply);
|
||||
int reply_ofs = (int)(offsetof(struct dhcpv6_packet, options));
|
||||
char status_msg[32];
|
||||
struct iasubopt *lease;
|
||||
struct ia_xx *existing_ia_na;
|
||||
@@ -5555,7 +5555,7 @@ dhcpv6_relay_forw(struct data_string *reply_ret, struct packet *packet) {
|
||||
sizeof(reply->link_address));
|
||||
memcpy(reply->peer_address, &packet->dhcpv6_peer_address,
|
||||
sizeof(reply->peer_address));
|
||||
reply_ofs = (int)((char *)reply->options - (char *)reply);
|
||||
reply_ofs = (int)(offsetof(struct dhcpv6_relay_packet, options));
|
||||
|
||||
/*
|
||||
* Get the reply option state.
|
||||
|
Reference in New Issue
Block a user