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

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

Details

Message ID 20170616091334.31475-2-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         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/reds-private.h b/server/reds-private.h
index 26b7435..b289267 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -122,7 +122,7 @@  struct RedsState {
      * client, being passed to the guest */
     SpiceBuffer client_monitors_config;
 
-    int mm_time_enabled;
+    bool mm_time_enabled;
     uint32_t mm_time_latency;
 
     SpiceCharDeviceInstance *vdagent;
diff --git a/server/reds.c b/server/reds.c
index a569a6e..7363735 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3025,14 +3025,14 @@  uint32_t reds_get_mm_time(void)
 
 void reds_enable_mm_time(RedsState *reds)
 {
-    reds->mm_time_enabled = TRUE;
+    reds->mm_time_enabled = true;
     reds->mm_time_latency = MM_TIME_DELTA;
     reds_send_mm_time(reds);
 }
 
 void reds_disable_mm_time(RedsState *reds)
 {
-    reds->mm_time_enabled = FALSE;
+    reds->mm_time_enabled = false;
 }
 
 static RedCharDevice *attach_to_red_agent(RedsState *reds, SpiceCharDeviceInstance *sin)