projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
952a0f0
)
util: make g_mime_utils_header_decode_date_unix match prototype
author
David Bremner
<david@tethera.net>
Mon, 17 Jul 2017 11:47:18 +0000
(08:47 -0300)
committer
David Bremner
<david@tethera.net>
Mon, 17 Jul 2017 11:47:18 +0000
(08:47 -0300)
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.
util/gmime-extra.c
patch
|
blob
|
history
diff --git
a/util/gmime-extra.c
b/util/gmime-extra.c
index ed53e0ab2a1efbede90b83d46f72932e62cb8884..901d4d5671baf741461e831356132effc6c07dc6 100644
(file)
--- 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 */