diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-02-09 21:44:45 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-02-28 16:36:35 +0100 |
commit | 76dc27f08a15bd2cb0e0f536972e361e6d7acc25 (patch) | |
tree | d44181ebb3408f1573b9e782e2f23d5704d1518a /server/red_dispatcher.c | |
parent | 1a4923c2107c89314714718ca1431d232cc23edf (diff) | |
download | spice-76dc27f08a15bd2cb0e0f536972e361e6d7acc25.tar.gz spice-76dc27f08a15bd2cb0e0f536972e361e6d7acc25.tar.xz spice-76dc27f08a15bd2cb0e0f536972e361e6d7acc25.zip |
server: rename s/peer/stream
This is stylish change again. We are talking about a RedStream object,
so let's just name the variable "stream" everywhere, to avoid
confusion with a non existent RedPeer object.
https://bugs.freedesktop.org/show_bug.cgi?id=34795
Diffstat (limited to 'server/red_dispatcher.c')
-rw-r--r-- | server/red_dispatcher.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c index 3816e142..75e0670e 100644 --- a/server/red_dispatcher.c +++ b/server/red_dispatcher.c @@ -71,7 +71,7 @@ extern spice_wan_compression_t zlib_glz_state; static RedDispatcher *dispatchers = NULL; -static void red_dispatcher_set_peer(Channel *channel, RedsStream *peer, int migration, +static void red_dispatcher_set_peer(Channel *channel, RedsStream *stream, int migration, int num_common_caps, uint32_t *common_caps, int num_caps, uint32_t *caps) { @@ -81,7 +81,7 @@ static void red_dispatcher_set_peer(Channel *channel, RedsStream *peer, int migr dispatcher = (RedDispatcher *)channel->data; RedWorkerMessage message = RED_WORKER_MESSAGE_DISPLAY_CONNECT; write_message(dispatcher->channel, &message); - send_data(dispatcher->channel, &peer, sizeof(RedsStream *)); + send_data(dispatcher->channel, &stream, sizeof(RedsStream *)); send_data(dispatcher->channel, &migration, sizeof(int)); } @@ -101,7 +101,7 @@ static void red_dispatcher_migrate(Channel *channel) write_message(dispatcher->channel, &message); } -static void red_dispatcher_set_cursor_peer(Channel *channel, RedsStream *peer, +static void red_dispatcher_set_cursor_peer(Channel *channel, RedsStream *stream, int migration, int num_common_caps, uint32_t *common_caps, int num_caps, uint32_t *caps) @@ -110,7 +110,7 @@ static void red_dispatcher_set_cursor_peer(Channel *channel, RedsStream *peer, red_printf(""); RedWorkerMessage message = RED_WORKER_MESSAGE_CURSOR_CONNECT; write_message(dispatcher->channel, &message); - send_data(dispatcher->channel, &peer, sizeof(RedsStream *)); + send_data(dispatcher->channel, &stream, sizeof(RedsStream *)); send_data(dispatcher->channel, &migration, sizeof(int)); } |