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

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

Details

Message ID 20170616091334.31475-14-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 878a306..56cb691 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -80,7 +80,7 @@  struct RedsState {
     SpiceWatch *listen_watch;
     SpiceWatch *secure_listen_watch;
     RedCharDeviceVDIPort *agent_dev;
-    int pending_mouse_event;
+    bool pending_mouse_event;
     GList *clients;
     MainChannel *main_channel;
     InputsChannel *inputs_channel;
diff --git a/server/reds.c b/server/reds.c
index 8182856..fd13f20 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -912,11 +912,11 @@  void reds_handle_agent_mouse_event(RedsState *reds, const VDAgentMouseState *mou
                                                     total_msg_size);
 
     if (!char_dev_buf) {
-        reds->pending_mouse_event = TRUE;
+        reds->pending_mouse_event = true;
 
         return;
     }
-    reds->pending_mouse_event = FALSE;
+    reds->pending_mouse_event = false;
 
     internal_buf = (VDInternalBuf *)char_dev_buf->buf;
     internal_buf->chunk_header.port = VDP_SERVER_PORT;