[Telepathy-commits] [telepathy-glib/master] TpTextMixin: don't assume that sizeof(time_t) == sizeof(guint)
Simon McVittie
simon.mcvittie at collabora.co.uk
Thu Jan 8 04:11:08 PST 2009
We pass message->timestamp to dbus_g_type_struct_set() using
the G_TYPE_UINT type and varargs. If timestamp is a time_t,
this fails whenever sizeof(time_t) != sizeof(guint)
(as seen in MS Visual Studio >= 2005).
Patch from Sunil Mohan Adapa <sunil at synovel.com> in
https://bugs.freedesktop.org/show_bug.cgi?id=19367
---
telepathy-glib/text-mixin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/telepathy-glib/text-mixin.c b/telepathy-glib/text-mixin.c
index 2fbd832..5660c41 100644
--- a/telepathy-glib/text-mixin.c
+++ b/telepathy-glib/text-mixin.c
@@ -85,7 +85,7 @@ struct _TpTextMixinPrivate
typedef struct
{
guint id;
- time_t timestamp;
+ guint timestamp;
TpHandle sender;
TpChannelTextMessageType type;
char *text;
--
1.5.6.5
More information about the Telepathy-commits
mailing list