[Spice-devel] [spice-server] Use enum rather than int in MainChannelClientPrivate::net_test_stage

Christophe Fergeau cfergeau at redhat.com
Tue Apr 11 09:58:17 UTC 2017


Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
 server/main-channel-client.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/main-channel-client.c b/server/main-channel-client.c
index 3a37944..ae8d2d5 100644
--- a/server/main-channel-client.c
+++ b/server/main-channel-client.c
@@ -30,13 +30,13 @@
 #define NET_TEST_WARMUP_BYTES 0
 #define NET_TEST_BYTES (1024 * 250)
 
-enum NetTestStage {
+typedef enum {
     NET_TEST_STAGE_INVALID,
     NET_TEST_STAGE_WARMUP,
     NET_TEST_STAGE_LATENCY,
     NET_TEST_STAGE_RATE,
     NET_TEST_STAGE_COMPLETE,
-};
+} NetTestStage;
 
 #define CLIENT_CONNECTIVITY_TIMEOUT (MSEC_PER_SEC * 30)
 
@@ -53,7 +53,7 @@ struct MainChannelClientPrivate {
     uint32_t connection_id;
     uint32_t ping_id;
     uint32_t net_test_id;
-    int net_test_stage;
+    NetTestStage net_test_stage;
     uint64_t latency;
     uint64_t bitrate_per_sec;
     int mig_wait_connect;
-- 
2.9.3



More information about the Spice-devel mailing list