summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-03-02 16:31:27 +0100
committerSteven Barth <steven@midlink.org>2015-03-02 16:31:27 +0100
commit721db56281dba79158470d7f69ccc7577f11fbb6 (patch)
treee365f3f70c3d99b1f3ca7319c0a2390e5f4ebc95 /src
parent549a4a7d93a828d7d2b9354bc1b1957de4333e65 (diff)
parent84fb5ae428affca196a2db7bd42cefb33d523f3f (diff)
Merge pull request #36 from fingon/compile-fix
DHCPv4: Compile fix on 64bit Debian.
Diffstat (limited to 'src')
-rw-r--r--src/dhcpv4.c4
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,