[Telepathy-commits] [telepathy-glib/master] TpProxy: use unsigned for booleans in bitfields

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Oct 15 02:42:25 PDT 2008


---
 telepathy-glib/proxy-methods.c |    6 +++---
 telepathy-glib/proxy.c         |    2 +-
 telepathy-glib/proxy.h         |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/telepathy-glib/proxy-methods.c b/telepathy-glib/proxy-methods.c
index 0a57d97..227245c 100644
--- a/telepathy-glib/proxy-methods.c
+++ b/telepathy-glib/proxy-methods.c
@@ -99,12 +99,12 @@ struct _TpProxyPendingCall {
     guint idle_source;
 
     /* If TRUE, invoke the callback even on cancellation */
-    gboolean cancel_must_raise:1;
+    unsigned cancel_must_raise:1;
 
     /* If TRUE, the idle_invoke callback has either run or been cancelled */
-    gboolean idle_completed:1;
+    unsigned idle_completed:1;
     /* If TRUE, dbus-glib no longer holds a reference to us */
-    gboolean dbus_completed:1;
+    unsigned dbus_completed:1;
 
     /* Marker to indicate that this is, in fact, a valid TpProxyPendingCall */
     gconstpointer priv;
diff --git a/telepathy-glib/proxy.c b/telepathy-glib/proxy.c
index abaef9b..e662fcf 100644
--- a/telepathy-glib/proxy.c
+++ b/telepathy-glib/proxy.c
@@ -250,7 +250,7 @@ struct _TpProxyPrivate {
      * the DBusGProxy has not been needed yet */
     GData *interfaces;
 
-    gboolean dispose_has_run:1;
+    unsigned dispose_has_run:1;
 };
 
 G_DEFINE_TYPE (TpProxy,
diff --git a/telepathy-glib/proxy.h b/telepathy-glib/proxy.h
index 0ef389f..83c3e05 100644
--- a/telepathy-glib/proxy.h
+++ b/telepathy-glib/proxy.h
@@ -74,7 +74,7 @@ struct _TpProxyClass {
 
     GQuark interface;
 
-    gboolean must_have_unique_name:1;
+    unsigned must_have_unique_name:1;
     guint _reserved_flags:31;
 
     GCallback _reserved[4];
-- 
1.5.6.5




More information about the Telepathy-commits mailing list