[Spice-devel] [PATCH spice-server 16/22] reds: use bool for RedCharDeviceVDIPortPrivate::agent_attached
Frediano Ziglio
fziglio at redhat.com
Fri Jun 16 09:13:28 UTC 2017
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/reds.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/reds.c b/server/reds.c
index 09968d3..2a1f158 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -227,7 +227,7 @@ enum {
};
struct RedCharDeviceVDIPortPrivate {
- gboolean agent_attached;
+ bool agent_attached;
uint32_t plug_generation;
bool client_agent_started;
@@ -472,7 +472,7 @@ static void reds_reset_vdp(RedsState *reds)
* instead we just reset it.
* The tokens are also reset to avoid mismatch in upon agent reconnection.
*/
- dev->priv->agent_attached = FALSE;
+ dev->priv->agent_attached = false;
red_char_device_reset(RED_CHAR_DEVICE(dev));
sif = spice_char_device_get_interface(reds->vdagent);
@@ -3040,7 +3040,7 @@ static RedCharDevice *attach_to_red_agent(RedsState *reds, SpiceCharDeviceInstan
RedCharDeviceVDIPort *dev = reds->agent_dev;
SpiceCharDeviceInterface *sif;
- dev->priv->agent_attached = TRUE;
+ dev->priv->agent_attached = true;
red_char_device_reset_dev_instance(RED_CHAR_DEVICE(dev), sin);
reds->vdagent = sin;
--
2.9.4
More information about the Spice-devel
mailing list