[Telepathy-commits] [telepathy-glib/master] TpConnectionManager: use unsigned for booleans in bitfields
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Oct 15 02:41:55 PDT 2008
---
telepathy-glib/connection-manager.c | 4 ++--
telepathy-glib/connection-manager.h | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/telepathy-glib/connection-manager.c b/telepathy-glib/connection-manager.c
index 33ef0c4..bbd9030 100644
--- a/telepathy-glib/connection-manager.c
+++ b/telepathy-glib/connection-manager.c
@@ -186,7 +186,7 @@ struct _TpConnectionManagerPrivate {
guint introspect_idle_id;
/* TRUE if we're waiting for ListProtocols */
- gboolean listing_protocols:1;
+ unsigned listing_protocols:1;
/* GPtrArray of TpConnectionManagerProtocol *. This is the implementation
* for self->protocols.
@@ -1260,7 +1260,7 @@ typedef struct
GDestroyNotify destroy;
TpProxyPendingCall *pending_call;
size_t base_len;
- gboolean getting_names:1;
+ unsigned getting_names:1;
guint refcount:2;
} _ListContext;
diff --git a/telepathy-glib/connection-manager.h b/telepathy-glib/connection-manager.h
index 4e0fd52..d7b498c 100644
--- a/telepathy-glib/connection-manager.h
+++ b/telepathy-glib/connection-manager.h
@@ -87,8 +87,9 @@ struct _TpConnectionManager {
const gchar *name;
const TpConnectionManagerProtocol * const *protocols;
- gboolean running:1;
- gboolean always_introspect:1;
+ /* These are really booleans, but gboolean is signed. Thanks, GLib */
+ unsigned running:1;
+ unsigned always_introspect:1;
TpCMInfoSource info_source:2;
guint reserved_flags:28;
--
1.5.6.5
More information about the Telepathy-commits
mailing list