[Spice-devel] [RFCv5 01/47] server/main_channel.c: set NET_TEST_STAGE_INVALID=0 explicitly (TODO - the rest)

Alon Levy alevy at redhat.com
Sun May 8 06:10:57 PDT 2011


should change all the enums that don't explicitly set their first value to 0.
---
 server/main_channel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/main_channel.c b/server/main_channel.c
index 1a6a89c..080ba1c 100644
--- a/server/main_channel.c
+++ b/server/main_channel.c
@@ -126,7 +126,7 @@ typedef struct MainChannel {
 } MainChannel;
 
 enum NetTestStage {
-    NET_TEST_STAGE_INVALID,
+    NET_TEST_STAGE_INVALID = 0,
     NET_TEST_STAGE_WARMUP,
     NET_TEST_STAGE_LATENCY,
     NET_TEST_STAGE_RATE,
-- 
1.7.5.1



More information about the Spice-devel mailing list