From: Steven Barth Date: Wed, 30 Jan 2013 21:51:30 +0000 (+0100) Subject: Fix compile error X-Git-Tag: debian/1.1+git20160131-1~194 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=bb73c7c3709076395a61d6807748c37e07822c57;p=odhcp6c.git Fix compile error --- diff --git a/src/ra.c b/src/ra.c index f9fd573..602191a 100644 --- a/src/ra.c +++ b/src/ra.c @@ -145,7 +145,7 @@ bool ra_rtnl_process(void) if (len < 0) break; - for (struct nlmsghdr *nh = (struct nlmsghdr*)buf; NLMSG_OK(nh, len); + for (struct nlmsghdr *nh = (struct nlmsghdr*)buf; NLMSG_OK(nh, (size_t)len); nh = NLMSG_NEXT(nh, len)) { struct ifaddrmsg *ifa = NLMSG_DATA(nh); struct in6_addr *addr = NULL;