[Spice-devel] [PATCH 11/18] server/red_worker: small cleanup with worker alias

Alon Levy alevy at redhat.com
Mon Feb 7 10:20:01 PST 2011


---
 server/red_worker.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index fb04ed9..e8849a7 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -8166,10 +8166,10 @@ static void red_send_local_cursor(CursorChannel *cursor_channel, LocalCursor *cu
     RedChannel *channel;
     SpiceMsgCursorSet cursor_set;
     AddBufInfo info;
-    RedWorker *worker = cursor_channel->common.worker;
+    RedWorker *worker;
 
     ASSERT(cursor_channel);
-
+    worker = cursor_channel->common.worker;
     channel = &cursor_channel->common.base;
     red_channel_init_send_data(channel, SPICE_MSG_CURSOR_SET, &cursor->base.pipe_data);
     cursor_set.position = cursor->position;
@@ -8181,7 +8181,7 @@ static void red_send_local_cursor(CursorChannel *cursor_channel, LocalCursor *cu
 
     red_channel_begin_send_message(channel);
 
-    red_release_cursor(cursor_channel->common.worker, (CursorItem *)cursor);
+    red_release_cursor(worker, (CursorItem *)cursor);
 }
 
 static void cursor_channel_send_migrate(CursorChannel *cursor_channel)
-- 
1.7.4



More information about the Spice-devel mailing list