[libvirt] [PATCH] Fix arch datatype in vahControl in virt-aa-helper.c

Daniel P. Berrange berrange at redhat.com
Wed Dec 19 11:47:07 UTC 2012


From: "Daniel P. Berrange" <berrange at redhat.com>

When changing to virArch, the virt-aa-helper.c file was not
completely changed. The vahControl struct was left with a
char *arch field, instead of virArch arch field.

Pushed as a build breaker fix
---
 src/security/virt-aa-helper.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index c07e69d..16ce7f3 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -72,7 +72,7 @@ typedef struct {
     virDomainDefPtr def;        /* VM definition */
     virCapsPtr caps;            /* VM capabilities */
     char *hvm;                  /* type of hypervisor (eg hvm, xen) */
-    char *arch;                 /* machine architecture */
+    virArch arch;               /* machine architecture */
     char *newfile;              /* newly added file */
     bool append;                /* append to .files instead of rewrite */
 } vahControl;
@@ -87,7 +87,6 @@ vahDeinit(vahControl * ctl)
     virCapabilitiesFree(ctl->caps);
     VIR_FREE(ctl->files);
     VIR_FREE(ctl->hvm);
-    VIR_FREE(ctl->arch);
     VIR_FREE(ctl->newfile);
 
     return 0;
-- 
1.7.11.7




More information about the libvir-list mailing list