[Spice-devel] [PATCH spice-server 19/22] reds: use bool for reds_set_migration_dest_info

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


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/reds.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index 67ba900..f8cf1d0 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -4053,17 +4053,17 @@ SPICE_GNUC_VISIBLE int spice_server_set_agent_file_xfer(SpiceServer *reds, int e
     return 0;
 }
 
-/* returns FALSE if info is invalid */
-static int reds_set_migration_dest_info(RedsState *reds,
-                                        const char* dest,
-                                        int port, int secure_port,
-                                        const char* cert_subject)
+/* returns false if info is invalid */
+static bool reds_set_migration_dest_info(RedsState *reds,
+                                         const char* dest,
+                                         int port, int secure_port,
+                                         const char* cert_subject)
 {
     RedsMigSpice *spice_migration = NULL;
 
     reds_mig_release(reds->config);
     if ((port == -1 && secure_port == -1) || !dest) {
-        return FALSE;
+        return false;
     }
 
     spice_migration = spice_new0(RedsMigSpice, 1);
@@ -4076,7 +4076,7 @@ static int reds_set_migration_dest_info(RedsState *reds,
 
     reds->config->mig_spice = spice_migration;
 
-    return TRUE;
+    return true;
 }
 
 /* semi-seamless client migration */
-- 
2.9.4



More information about the Spice-devel mailing list