From 820de6829fedccffb8b3c32f079436fa7e89273e Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 24 Aug 2015 09:05:18 -0400 Subject: added --env option --- src/lib/libnetlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libnetlink.c b/src/lib/libnetlink.c index 40fb099f7..fddbc209d 100644 --- a/src/lib/libnetlink.c +++ b/src/lib/libnetlink.c @@ -159,7 +159,7 @@ int rtnl_send_check(struct rtnl_handle *rth, const void *buf, int len) return -1; } - for (h = (struct nlmsghdr *)resp; NLMSG_OK(h, status); + for (h = (struct nlmsghdr *)resp; NLMSG_OK(h, (unsigned) status); h = NLMSG_NEXT(h, status)) { if (h->nlmsg_type == NLMSG_ERROR) { struct nlmsgerr *err = (struct nlmsgerr*)NLMSG_DATA(h); @@ -239,7 +239,7 @@ int rtnl_dump_filter_l(struct rtnl_handle *rth, struct nlmsghdr *h = (struct nlmsghdr*)buf; msglen = status; - while (NLMSG_OK(h, msglen)) { + while (NLMSG_OK(h, (unsigned) msglen)) { int err; if (nladdr.nl_pid != 0 || -- cgit v1.2.3-54-g00ecf