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

Submitted by Frediano Ziglio on June 16, 2017, 9:13 a.m.

Details

Message ID 20170616091334.31475-10-fziglio@redhat.com
State New
Headers show
Series "reds: Use bool for boolean types" ( rev: 6 5 4 3 2 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio June 16, 2017, 9:13 a.m.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/reds-private.h | 2 +-
 server/reds.c         | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

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;
 }