Skip to content

Commit

Permalink
network: fix integer comparisons
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Oct 14, 2021
1 parent 70c8f1c commit 2bb4d96
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lxc/network.c
Expand Up @@ -1911,7 +1911,8 @@ int netdev_get_mtu(int ifindex)
call_cleaner(nlmsg_free) struct nlmsg *answer = NULL, *nlmsg = NULL;
struct nl_handler nlh;
call_cleaner(netlink_close) struct nl_handler *nlh_ptr = &nlh;
int readmore = 0, recv_len = 0;
int readmore = 0;
__u32 recv_len = 0;
int answer_len, err, res;
struct ifinfomsg *ifi;
struct nlmsghdr *msg;
Expand Down Expand Up @@ -2547,7 +2548,8 @@ static int ip_addr_get(int family, int ifindex, void **res)
int answer_len, err;
struct ifaddrmsg *ifa;
struct nlmsghdr *msg;
int readmore = 0, recv_len = 0;
int readmore = 0;
__u32 recv_len = 0;

err = netlink_open(nlh_ptr, NETLINK_ROUTE);
if (err)
Expand Down

0 comments on commit 2bb4d96

Please sign in to comment.