From: Daniel P. Berrange Date: Wed, 19 Dec 2012 11:45:31 +0000 (+0000) Subject: Fix arch datatype in vahControl in virt-aa-helper.c X-Git-Tag: v1.0.2-rc1~361 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc068e35c025d66beda47fba4003aa288d47c82e;p=thirdparty%2Flibvirt.git Fix arch datatype in vahControl in virt-aa-helper.c 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. --- diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index c07e69d6dc..16ce7f3d8e 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;