[lxc-devel] [lxd/master] network: fix netns_get_nsid() signature

brauner on Github lxc-bot at linuxcontainers.org
Wed Oct 3 12:52:09 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181003/1b8aaed9/attachment.bin>
-------------- next part --------------
From aadaf392689cde236780103645c0434d1854d6af Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 3 Oct 2018 14:50:55 +0200
Subject: [PATCH] network: fix netns_get_nsid() signature

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 shared/network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shared/network.c b/shared/network.c
index c882b7aa2b..688a18686d 100644
--- a/shared/network.c
+++ b/shared/network.c
@@ -276,7 +276,7 @@ static int addattr(struct nlmsghdr *n, size_t maxlen, int type,
 	return 0;
 }
 
-static __s32 netns_get_nsid(int netns_fd)
+static __s32 netns_get_nsid(__s32 netns_fd)
 {
 	int fd, ret;
 	ssize_t len;


More information about the lxc-devel mailing list