]> xenbits.xensource.com Git - libvirt.git/commitdiff
apparmor: Fix compilation by removing remains from virCommand conversion
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 14 May 2011 04:51:32 +0000 (06:51 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 14 May 2011 04:51:32 +0000 (06:51 +0200)
Commit aaf20355b87d3bfda7579a7f6a4a978e848635c3 was incomplete here and
missed to remove some parts.

src/security/security_apparmor.c

index 221e3311571f2a531fd004bb7e689c3b2849254e..f47ded7c328aed9542b59e39822354e54ff83ac5 100644 (file)
@@ -163,7 +163,7 @@ load_profile(virSecurityManagerPtr mgr,
              const char *fn,
              bool append)
 {
-    int rc = -1, status, ret;
+    int rc = -1;
     bool create = true;
     char *xml = NULL;
     virCommandPtr cmd;
@@ -194,9 +194,6 @@ load_profile(virSecurityManagerPtr mgr,
   clean:
     VIR_FREE(xml);
 
-    VIR_FORCE_CLOSE(pipefd[0]);
-    VIR_FORCE_CLOSE(pipefd[1]);
-
     return rc;
 }