[Spice-devel] [PATCH v2 01/40] server/red_tunnel_worker: use message_serial setter and getter

Alon Levy alevy at redhat.com
Wed Mar 2 00:31:24 PST 2011


fixes breakage in --enable-tunnel compilation.
---
 server/red_tunnel_worker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/red_tunnel_worker.c b/server/red_tunnel_worker.c
index fddcf2c..da44cfe 100644
--- a/server/red_tunnel_worker.c
+++ b/server/red_tunnel_worker.c
@@ -2173,8 +2173,8 @@ static int tunnel_channel_handle_migrate_data(TunnelChannel *channel,
         goto error;
     }
 
-    ASSERT(channel->base.send_data.header.serial == 0);
-    channel->base.send_data.header.serial = migrate_data->message_serial;
+    ASSERT(red_channel_get_message_serial(&channel->base) == 0);
+    red_channel_set_message_serial(&channel->base, migrate_data->message_serial);
 
     net_slirp_state_restore(migrate_data->data + migrate_data->slirp_state);
 
-- 
1.7.4.1



More information about the Spice-devel mailing list