[Spice-devel] [PATCH 06/16] Change reds_mig_switch() to take RedsState arg

Frediano Ziglio fziglio at redhat.com
Wed Jan 20 07:43:32 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 6a2277c..da2555a 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2932,7 +2932,7 @@ static void reds_mig_finished(RedsState *reds, int completed)
     reds_mig_release(reds);
 }
 
-static void reds_mig_switch(void)
+static void reds_mig_switch(RedsState *reds)
 {
     if (!reds->mig_spice) {
         spice_warning("reds_mig_switch called without migrate_info set");
@@ -3978,7 +3978,7 @@ SPICE_GNUC_VISIBLE int spice_server_migrate_switch(SpiceServer *s)
        return 0;
     }
     reds->expect_migrate = FALSE;
-    reds_mig_switch();
+    reds_mig_switch(reds);
     return 0;
 }
 
-- 
2.4.3



More information about the Spice-devel mailing list