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

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

Details

Message ID 20170616091334.31475-17-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 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

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;