]> xenbits.xensource.com Git - libvirt.git/commitdiff
[LXC] Remove unused variable and fix uninitialized variable
authorDan Smith <danms@us.ibm.com>
Fri, 27 Jun 2008 15:05:31 +0000 (15:05 +0000)
committerDan Smith <danms@us.ibm.com>
Fri, 27 Jun 2008 15:05:31 +0000 (15:05 +0000)
Also remove a stale comment in the area.  This makes libvirt compile when
passed --with-lxc and --enable-compiler-warnings=error

src/veth.c

index 949496357ce33aa58fa4c5b73d56490dd36527d1..e5e986b614c4a8ec05f7ed7e67a6d6a0b844e87d 100644 (file)
@@ -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;