From 88020a840d641b5474ea9d1fde51ba23a4590ce7 Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Mon, 11 Jan 2016 14:52:29 +1030 Subject: [PATCH] Add size cast to avoid compilation warning for some linux compilers --- overlay_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay_interface.c b/overlay_interface.c index 1e467830..1455c05f 100644 --- a/overlay_interface.c +++ b/overlay_interface.c @@ -1178,7 +1178,7 @@ void netlink_poll(struct sched_ent *alarm) DEBUGF(overlayinterfaces, "recv(%d) len %u", alarm->poll.fd, len); struct nlmsghdr *nlh = (struct nlmsghdr *)buff; - for (nlh = (struct nlmsghdr *)buff; (NLMSG_OK (nlh, len)) && (nlh->nlmsg_type != NLMSG_DONE); nlh = NLMSG_NEXT(nlh, len)){ + for (nlh = (struct nlmsghdr *)buff; (NLMSG_OK (nlh, (size_t)len)) && (nlh->nlmsg_type != NLMSG_DONE); nlh = NLMSG_NEXT(nlh, len)){ switch(nlh->nlmsg_type){ case RTM_NEWADDR: