aboutsummaryrefslogtreecommitdiff
path: root/util/gmime-extra.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-07-17 08:47:18 -0300
committerDavid Bremner <david@tethera.net>2017-07-17 08:47:18 -0300
commitd2c3a0a3a849fdc8ce2f908b2c0d6e7197f07ae1 (patch)
tree88ebe03eb247e6a3d6e02b6567bc11054ed06422 /util/gmime-extra.c
parent952a0f0cda7d1a12432d1c9ad71b41401cb1615c (diff)
util: make g_mime_utils_header_decode_date_unix match prototype
The problem shows up on 32 bit architectures where sizeof(time_t) != sizeof(gint64). Upcasting the 32 bit time_t to a 64 bit integer should hopefully be safe.
Diffstat (limited to 'util/gmime-extra.c')
-rw-r--r--util/gmime-extra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/gmime-extra.c b/util/gmime-extra.c
index ed53e0ab..901d4d56 100644
--- a/util/gmime-extra.c
+++ b/util/gmime-extra.c
@@ -100,9 +100,9 @@ g_mime_signature_status_error (GMimeSignatureError error) {
return (error != GMIME_SIGNATURE_ERROR_NONE);
}
-time_t
+gint64
g_mime_utils_header_decode_date_unix (const char *date) {
- return g_mime_utils_header_decode_date (date, NULL);
+ return (gint64) g_mime_utils_header_decode_date (date, NULL);
}
#else /* GMime >= 3.0 */