From 84fb5ae428affca196a2db7bd42cefb33d523f3f Mon Sep 17 00:00:00 2001 From: Markus Stenberg Date: Mon, 23 Feb 2015 13:13:36 +0200 Subject: [PATCH] DHCPv4: Compile fix on 64bit Debian. --- src/dhcpv4.c | 4 ++-- 1 file 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, -- 2.25.1