[libvirt] [PATCHv2] conf: Improve metadata type verification

Ján Tomko jtomko at redhat.com
Wed Jul 9 12:52:27 UTC 2014


On 07/09/2014 02:44 PM, Peter Krempa wrote:
> Split out checking of invalid metadata type from the switch statement so
> that we can use the typecasted enum value to allow tracking addition of
> new items by the compliler.
> 
> Also avoids two dead-code break statements.
> ---
> Version 2:
> - move the check back to the original function so that we don't break forward compat
> 
>  src/conf/domain_conf.c | 22 ++++++++++++++--------
>  1 file changed, 14 insertions(+), 8 deletions(-)

ACK

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/20140709/b8960fdd/attachment-0001.sig>


More information about the libvir-list mailing list