[Spice-devel] [PATCH spice-server 17/22] reds: use bool for RedCharDeviceVDIPortPrivate::recv_from_client_buf_pushed
Frediano Ziglio
fziglio at redhat.com
Fri Jun 16 09:13:29 UTC 2017
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/reds.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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);
}
--
2.9.4
More information about the Spice-devel
mailing list