From: Christian Brauner Date: Tue, 11 Sep 2018 12:02:03 +0000 (+0200) Subject: network: use correct type in lxc_netns_set_nsid() X-Git-Tag: lxc-3.1.0~104^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41a3300dbb16e8eddccda15d5a724921d5ba94e8;p=thirdparty%2Flxc.git network: use correct type in lxc_netns_set_nsid() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/network.c b/src/lxc/network.c index c4e292e12..9fcd3b07c 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -3196,7 +3196,7 @@ enum { int lxc_netns_set_nsid(int fd) { - ssize_t ret; + int ret; char buf[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + NLMSG_ALIGN(sizeof(struct rtgenmsg)) + NLMSG_ALIGN(1024)]; @@ -3209,7 +3209,7 @@ int lxc_netns_set_nsid(int fd) ret = netlink_open(&nlh, NETLINK_ROUTE); if (ret < 0) - return ret; + return -1; memset(buf, 0, sizeof(buf)); hdr = (struct nlmsghdr *)buf;