router: fix compile issue on 64 bit systems
[project/odhcpd.git] / src / router.c
index f84ec0182b91d3fa5daebb0e70e838352f26b453..c410a9ceaf74742ee5dc82f55af6a9cac5a889a4 100644 (file)
@@ -263,8 +263,8 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add
                else if (parse_routes(addrs, ipcnt))
                        adv.h.nd_ra_router_lifetime = htons(1);
 
-               syslog(LOG_INFO, "Initial router lifetime %d, %ld address(es) available",
-                               ntohs(adv.h.nd_ra_router_lifetime), ipcnt);
+               syslog(LOG_INFO, "Initial router lifetime %d, %d address(es) available",
+                               ntohs(adv.h.nd_ra_router_lifetime), (int)ipcnt);
        }
 
        // Construct Prefix Information options