summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-02-28 18:35:12 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-02-28 18:35:12 -0500
commit0c3483b85b4a571175690a454cb5df0b11b5b3eb (patch)
tree8a467db5ebfe4a9a4e5c222fb257e06234572f33
parentf35da212884e566440d6a6f587e67cd8c4be656b (diff)
downloadtelepathy-logger-0c3483b85b4a571175690a454cb5df0b11b5b3eb.tar.gz
Convert timestamp from uint to int64 on sent message
This was causing issue on 32bit machines as the 32bit timestamp was passed to g_object_new(), resulting in a vararg structure 32bit shorter then expected by GObject.
-rw-r--r--telepathy-logger/text-channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/telepathy-logger/text-channel.c b/telepathy-logger/text-channel.c
index 1645510..95ab15b 100644
--- a/telepathy-logger/text-channel.c
+++ b/telepathy-logger/text-channel.c
@@ -1049,7 +1049,7 @@ on_send_error_cb (TpChannel *proxy,
static void
on_sent_signal_cb (TpChannel *proxy,
- guint timestamp,
+ guint tp_timestamp,
guint type,
const gchar *text,
gpointer user_data,
@@ -1065,6 +1065,7 @@ on_sent_signal_cb (TpChannel *proxy,
TpAccount *account;
const gchar *channel_path;
gchar *log_id;
+ gint64 timestamp = (gint64) tp_timestamp;
g_return_if_fail (TPL_IS_TEXT_CHANNEL (tpl_text));