[libvirt] [PATCH 1/5] util: storage: Convert disk locality check to switch statement

Peter Krempa pkrempa at redhat.com
Wed Sep 10 11:35:49 UTC 2014


On 09/10/14 12:04, Daniel P. Berrange wrote:
> On Tue, Sep 09, 2014 at 10:45:44AM +0200, Peter Krempa wrote:
>> To allow the compiler to track future additions of disk types, convert
>> the function to use a switch statement with the correct type.
>> ---
>>  src/util/virstoragefile.c | 17 ++++++++++++++++-
>>  1 file changed, 16 insertions(+), 1 deletion(-)
> 
> ACK
> 

I've pushed this one. Thanks.

Peter



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


More information about the libvir-list mailing list