DHCPv4: Compile fix on 64bit Debian.
authorMarkus Stenberg <markus.stenberg@iki.fi>
Mon, 23 Feb 2015 11:13:36 +0000 (13:13 +0200)
committerMarkus Stenberg <markus.stenberg@iki.fi>
Mon, 23 Feb 2015 11:13:36 +0000 (13:13 +0200)
src/dhcpv4.c

index 462f641a0b6ab1b85ddf39ab4c0fabe222c3a831..04ef182472d1945e92c0b87388096947010aff64 100644 (file)
@@ -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,