We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a60416f commit a270607Copy full SHA for a270607
src/network/networkd-dhcp-server.c
@@ -160,12 +160,12 @@ static int link_push_uplink_to_dhcp_server(
160
if (lease_condition && link->dhcp_lease) {
161
const struct in_addr *da;
162
163
- size_t n = sd_dhcp_lease_get_servers(link->dhcp_lease, what, &da);
+ int n = sd_dhcp_lease_get_servers(link->dhcp_lease, what, &da);
164
if (n > 0) {
165
if (!GREEDY_REALLOC(addresses, n_allocated, n_addresses + n))
166
return log_oom();
167
168
- for (unsigned i = 0; i < n; i++)
+ for (int i = 0; i < n; i++)
169
if (in4_addr_is_non_local(&da[i]))
170
addresses[n_addresses++] = da[i];
171
}
0 commit comments