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

Peter Krempa pkrempa at redhat.com
Wed Jul 9 12:57:20 UTC 2014


On 07/09/14 14:52, Ján Tomko wrote:
> 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
> 

Pushed; Thanks.

Peter


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


More information about the libvir-list mailing list