aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-24 09:05:18 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-24 09:05:18 -0400
commit820de6829fedccffb8b3c32f079436fa7e89273e (patch)
treea1e0cf62b892e91d18de28d7459180339c5636d1 /src/lib
parentprivate-home testing (diff)
downloadfirejail-820de6829fedccffb8b3c32f079436fa7e89273e.tar.gz
firejail-820de6829fedccffb8b3c32f079436fa7e89273e.tar.zst
firejail-820de6829fedccffb8b3c32f079436fa7e89273e.zip
added --env option
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libnetlink.c4
1 files changed, 2 insertions, 2 deletions
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)
159 return -1; 159 return -1;
160 } 160 }
161 161
162 for (h = (struct nlmsghdr *)resp; NLMSG_OK(h, status); 162 for (h = (struct nlmsghdr *)resp; NLMSG_OK(h, (unsigned) status);
163 h = NLMSG_NEXT(h, status)) { 163 h = NLMSG_NEXT(h, status)) {
164 if (h->nlmsg_type == NLMSG_ERROR) { 164 if (h->nlmsg_type == NLMSG_ERROR) {
165 struct nlmsgerr *err = (struct nlmsgerr*)NLMSG_DATA(h); 165 struct nlmsgerr *err = (struct nlmsgerr*)NLMSG_DATA(h);
@@ -239,7 +239,7 @@ int rtnl_dump_filter_l(struct rtnl_handle *rth,
239 struct nlmsghdr *h = (struct nlmsghdr*)buf; 239 struct nlmsghdr *h = (struct nlmsghdr*)buf;
240 msglen = status; 240 msglen = status;
241 241
242 while (NLMSG_OK(h, msglen)) { 242 while (NLMSG_OK(h, (unsigned) msglen)) {
243 int err; 243 int err;
244 244
245 if (nladdr.nl_pid != 0 || 245 if (nladdr.nl_pid != 0 ||