Fix compile error
authorSteven Barth <steven@midlink.org>
Wed, 30 Jan 2013 21:51:30 +0000 (22:51 +0100)
committerSteven Barth <steven@midlink.org>
Wed, 30 Jan 2013 21:51:30 +0000 (22:51 +0100)
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;