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

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

Details

Message ID 20170616091334.31475-20-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.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Patch hide | download patch | download mbox

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 */