From 0d2c36fda9965abc1e9424576f8016727ccdb98b Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Fri, 27 Jun 2008 15:05:31 +0000 Subject: [PATCH] [LXC] Remove unused variable and fix uninitialized variable Also remove a stale comment in the area. This makes libvirt compile when passed --with-lxc and --enable-compiler-warnings=error --- src/veth.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/veth.c b/src/veth.c index 949496357c..e5e986b614 100644 --- a/src/veth.c +++ b/src/veth.c @@ -192,14 +192,12 @@ error_out: */ int moveInterfaceToNetNs(const char* interface, int pidInNs) { - int rc; - /* offset of the pid field in the following args */ + int rc = -1; char *pid = NULL; const char *argv[] = { "ip", "link", "set", interface, "netns", NULL, NULL }; int cmdResult; - int len; if (NULL == interface) { goto error_out; -- 2.39.5