[Spice-commits] server/main-channel-client.c

Christophe Fergau teuf at kemper.freedesktop.org
Wed Apr 26 15:46:00 UTC 2017


 server/main-channel-client.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f9e74545091af30be81c793e69b4e1e3c91651f0
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Mon Apr 10 10:45:29 2017 +0200

    Use enum rather than int in MainChannelClientPrivate::net_test_stage
    
    Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/server/main-channel-client.c b/server/main-channel-client.c
index 3a379444..ae8d2d50 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;


More information about the Spice-commits mailing list