mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-29 04:16:43 +00:00
network: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
7a7f9a1453
commit
df0834edba
@ -1911,7 +1911,8 @@ int netdev_get_mtu(int ifindex)
|
|||||||
call_cleaner(nlmsg_free) struct nlmsg *answer = NULL, *nlmsg = NULL;
|
call_cleaner(nlmsg_free) struct nlmsg *answer = NULL, *nlmsg = NULL;
|
||||||
struct nl_handler nlh;
|
struct nl_handler nlh;
|
||||||
call_cleaner(netlink_close) struct nl_handler *nlh_ptr = &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;
|
int answer_len, err, res;
|
||||||
struct ifinfomsg *ifi;
|
struct ifinfomsg *ifi;
|
||||||
struct nlmsghdr *msg;
|
struct nlmsghdr *msg;
|
||||||
@ -2547,7 +2548,8 @@ static int ip_addr_get(int family, int ifindex, void **res)
|
|||||||
int answer_len, err;
|
int answer_len, err;
|
||||||
struct ifaddrmsg *ifa;
|
struct ifaddrmsg *ifa;
|
||||||
struct nlmsghdr *msg;
|
struct nlmsghdr *msg;
|
||||||
int readmore = 0, recv_len = 0;
|
int readmore = 0;
|
||||||
|
__u32 recv_len = 0;
|
||||||
|
|
||||||
err = netlink_open(nlh_ptr, NETLINK_ROUTE);
|
err = netlink_open(nlh_ptr, NETLINK_ROUTE);
|
||||||
if (err)
|
if (err)
|
||||||
|
Loading…
Reference in New Issue
Block a user