Re: [libvirt] [PATCH 5/7] Explicitly cast some switch parameters to enum

2014-03-18 Thread Pavel Hrdina
On 17.3.2014 16:38, Eric Blake wrote: On 03/17/2014 08:39 AM, Martin Kletzander wrote: This patch is not trying to fix every switch, just the ones I worked with last time, because some of these were especially unreadable. Covers enums virDomainGraphicsType and virDomainChrType (where

Re: [libvirt] [PATCH 5/7] Explicitly cast some switch parameters to enum

2014-03-18 Thread Martin Kletzander
On Tue, Mar 18, 2014 at 11:15:01AM +0100, Pavel Hrdina wrote: On 17.3.2014 16:38, Eric Blake wrote: On 03/17/2014 08:39 AM, Martin Kletzander wrote: This patch is not trying to fix every switch, just the ones I worked with last time, because some of these were especially unreadable.

[libvirt] [PATCH 5/7] Explicitly cast some switch parameters to enum

2014-03-17 Thread Martin Kletzander
This patch is not trying to fix every switch, just the ones I worked with last time, because some of these were especially unreadable. Covers enums virDomainGraphicsType and virDomainChrType (where applicable). Also sort it's cases by their value. Signed-off-by: Martin Kletzander

Re: [libvirt] [PATCH 5/7] Explicitly cast some switch parameters to enum

2014-03-17 Thread Eric Blake
On 03/17/2014 08:39 AM, Martin Kletzander wrote: This patch is not trying to fix every switch, just the ones I worked with last time, because some of these were especially unreadable. Covers enums virDomainGraphicsType and virDomainChrType (where applicable). Also sort it's cases by their