mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
plugins: netlink: fix gcc signed vs unsigned comparsion warning
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
5f3958fab4
commit
93a027ca23
1 file changed
+3
-2
+3
-2
@@ -231,6 +231,7 @@ static int nl_parse(int sd)
|
|||||||
while (1) {
|
while (1) {
|
||||||
struct nlmsghdr *nh;
|
struct nlmsghdr *nh;
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
|
size_t l;
|
||||||
|
|
||||||
while ((len = recv(sd, nl_buf, NL_BUFSZ, 0)) < 0) {
|
while ((len = recv(sd, nl_buf, NL_BUFSZ, 0)) < 0) {
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
@@ -252,8 +253,8 @@ static int nl_parse(int sd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_d("recv %lld bytes", len);
|
_d("recv %lld bytes", len);
|
||||||
|
l = (size_t)len;
|
||||||
for (nh = (struct nlmsghdr *)nl_buf; NLMSG_OK(nh, len); nh = NLMSG_NEXT(nh, len)) {
|
for (nh = (struct nlmsghdr *)nl_buf; NLMSG_OK(nh, l); nh = NLMSG_NEXT(nh, l)) {
|
||||||
struct nlmsgerr *nle;
|
struct nlmsgerr *nle;
|
||||||
|
|
||||||
switch (nh->nlmsg_type) {
|
switch (nh->nlmsg_type) {
|
||||||
|
|||||||
Reference in new issue
Block a user