router: fix compile issue on 64 targets
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 24 Jan 2017 08:06:22 +0000 (09:06 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 24 Jan 2017 08:07:39 +0000 (09:07 +0100)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/router.c

index a09e107a05f7548d22eaf5ac83749cbdfe232d39..f84ec0182b91d3fa5daebb0e70e838352f26b453 100644 (file)
@@ -263,7 +263,7 @@ 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, %d address(es) available",
+               syslog(LOG_INFO, "Initial router lifetime %d, %ld address(es) available",
                                ntohs(adv.h.nd_ra_router_lifetime), ipcnt);
        }