]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/ra.c
Fix compile error
[odhcp6c.git] / src / ra.c
index f9fd573f8009ee8b82a05c8a2f609c694937faa4..602191aef05d216bc9adcda602a80ef7d5650117 100644 (file)
--- 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;