From: Matthias Bolte Date: Sat, 14 May 2011 04:51:32 +0000 (+0200) Subject: apparmor: Fix compilation by removing remains from virCommand conversion X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0ec289a4695663504ecd8aa0929462535d76b1e7;p=libvirt.git apparmor: Fix compilation by removing remains from virCommand conversion Commit aaf20355b87d3bfda7579a7f6a4a978e848635c3 was incomplete here and missed to remove some parts. --- diff --git a/src/security/security_apparmor.c b/src/security/security_apparmor.c index 221e331157..f47ded7c32 100644 --- a/src/security/security_apparmor.c +++ b/src/security/security_apparmor.c @@ -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; }