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

2014-09-10 Thread Daniel P. Berrange
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

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

2014-09-10 Thread Peter Krempa
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 -

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

2014-09-10 Thread Eric Blake
On 09/09/2014 02:45 AM, 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(-) diff --git

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

2014-09-09 Thread Peter Krempa
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(-) diff --git a/src/util/virstoragefile.c