[Spice-devel] [PATCH 12/15] Change reds_find_client() to take RedsState arg

Frediano Ziglio fziglio at redhat.com
Tue Jan 19 06:29:45 PST 2016


From: Jonathon Jongsma <jjongsma at redhat.com>

---
 server/reds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index a277df9..6d34554 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1623,7 +1623,7 @@ static void reds_mig_target_client_disconnect_all(RedsState *reds)
     }
 }
 
-static int reds_find_client(RedClient *client)
+static int reds_find_client(RedsState *reds, RedClient *client)
 {
     RingItem *item;
 
@@ -1845,7 +1845,7 @@ int reds_on_migrate_dst_set_seamless(MainChannelClient *mcc, uint32_t src_versio
 void reds_on_client_seamless_migrate_complete(RedClient *client)
 {
     spice_debug(NULL);
-    if (!reds_find_client(client)) {
+    if (!reds_find_client(reds, client)) {
         spice_info("client no longer exists");
         return;
     }
-- 
2.4.3



More information about the Spice-devel mailing list