[Spice-devel] [PATCH spice-server 09/22] reds: use bool for RedsState::expect_migrate

Frediano Ziglio fziglio at redhat.com
Fri Jun 16 09:13:21 UTC 2017


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/reds-private.h | 2 +-
 server/reds.c         | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/reds-private.h b/server/reds-private.h
index 68c3c45..06fd596 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -93,7 +93,7 @@ struct RedsState {
 
 
     int mig_inprogress;
-    int expect_migrate;
+    bool expect_migrate;
     bool src_do_seamless_migrate; /* per migration. Updated after the migration handshake
                                      between the 2 servers */
     bool dst_do_seamless_migrate; /* per migration. Updated after the migration handshake
diff --git a/server/reds.c b/server/reds.c
index b0478f2..3846a33 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -4102,7 +4102,7 @@ SPICE_GNUC_VISIBLE int spice_server_migrate_connect(SpiceServer *reds, const cha
         return -1;
     }
 
-    reds->expect_migrate = TRUE;
+    reds->expect_migrate = true;
 
     /*
      * seamless migration support was added to the client after the support in
@@ -4169,7 +4169,7 @@ SPICE_GNUC_VISIBLE int spice_server_migrate_end(SpiceServer *reds, int completed
         goto complete;
     }
 
-    reds->expect_migrate = FALSE;
+    reds->expect_migrate = false;
     if (!reds_main_channel_connected(reds)) {
         spice_debug("no peer connected");
         goto complete;
@@ -4190,7 +4190,7 @@ SPICE_GNUC_VISIBLE int spice_server_migrate_switch(SpiceServer *reds)
     if (reds->clients == NULL) {
        return 0;
     }
-    reds->expect_migrate = FALSE;
+    reds->expect_migrate = false;
     reds_mig_switch(reds);
     return 0;
 }
-- 
2.9.4



More information about the Spice-devel mailing list