diff options
author | Markus Stenberg <markus.stenberg@iki.fi> | 2015-02-23 13:13:36 +0200 |
---|---|---|
committer | Markus Stenberg <markus.stenberg@iki.fi> | 2015-02-23 13:13:36 +0200 |
commit | 84fb5ae428affca196a2db7bd42cefb33d523f3f (patch) | |
tree | e365f3f70c3d99b1f3ca7319c0a2390e5f4ebc95 /src/dhcpv4.c | |
parent | 549a4a7d93a828d7d2b9354bc1b1957de4333e65 (diff) |
DHCPv4: Compile fix on 64bit Debian.
Diffstat (limited to 'src/dhcpv4.c')
-rw-r--r-- | src/dhcpv4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 462f641..04ef182 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -554,12 +554,12 @@ static bool dhcpv4_assign(struct interface *iface, return true; } - for (size_t i = 0; i < count; ++i) { + for (uint32_t i = 0; i < count; ++i) { if (dhcpv4_test(iface, try)) { /* test was successful: IP address is not assigned, assign it */ assign->addr = try; list_add(&assign->head, &iface->dhcpv4_assignments); - syslog(LOG_DEBUG, "assigning mapped IP: %u.%u.%u.%u (try %d of %d)", + syslog(LOG_DEBUG, "assigning mapped IP: %u.%u.%u.%u (try %u of %u)", (assign->addr & 0xff000000) >> 24, (assign->addr & 0x00ff0000) >> 16, (assign->addr & 0x0000ff00) >> 8, |