[libvirt] [PATCH] security_dac: Use virDomainTPMBackendType when possible

Ján Tomko jtomko at redhat.com
Mon May 19 10:03:33 UTC 2014


On 05/19/2014 11:39 AM, Michal Privoznik wrote:
> It's certainly useful to use enum typecast in switch().
> Currently, it's not used only in two places:
> virSecurityDACSetSecurityTPMFileLabel and
> virSecurityDACRestoreSecurityTPMFileLabel.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/security/security_dac.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

The tpm type is declared as enum virDomainTPMBackendType, no need to typecast it.

Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140519/b42a4f95/attachment-0001.sig>


More information about the libvir-list mailing list