[Spice-devel,spice-server,17/22] reds: use bool for RedCharDeviceVDIPortPrivate::recv_from_client_buf_pushed

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

Details

Message ID 20170616091334.31475-18-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 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/reds.c b/server/reds.c
index 2a1f158..b95043b 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -233,7 +233,7 @@  struct RedCharDeviceVDIPortPrivate {
 
     /* write to agent */
     RedCharDeviceWriteBuffer *recv_from_client_buf;
-    int recv_from_client_buf_pushed;
+    bool recv_from_client_buf_pushed;
     AgentMsgFilter write_filter;
 
     /* read from agent */
@@ -1079,7 +1079,7 @@  uint8_t *reds_get_agent_data_buffer(RedsState *reds, MainChannelClient *mcc, siz
     if (!dev->priv->recv_from_client_buf) {
         return NULL;
     }
-    dev->priv->recv_from_client_buf_pushed = FALSE;
+    dev->priv->recv_from_client_buf_pushed = false;
     return dev->priv->recv_from_client_buf->buf + sizeof(VDIChunkHeader);
 }
 
@@ -1099,7 +1099,7 @@  void reds_release_agent_data_buffer(RedsState *reds, uint8_t *buf)
                                              &dev->priv->recv_from_client_buf);
     }
     dev->priv->recv_from_client_buf = NULL;
-    dev->priv->recv_from_client_buf_pushed = FALSE;
+    dev->priv->recv_from_client_buf_pushed = false;
 }
 
 static void reds_on_main_agent_monitors_config(RedsState *reds,
@@ -1152,7 +1152,7 @@  void reds_on_main_agent_data(RedsState *reds, MainChannelClient *mcc, const void
     header->size = size;
     dev->priv->recv_from_client_buf->buf_used = sizeof(VDIChunkHeader) + size;
 
-    dev->priv->recv_from_client_buf_pushed = TRUE;
+    dev->priv->recv_from_client_buf_pushed = true;
     red_char_device_write_buffer_add(RED_CHAR_DEVICE(reds->agent_dev), dev->priv->recv_from_client_buf);
 }