mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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.
This commit is contained in:
parent
952a0f0cda
commit
d2c3a0a3a8
1 changed files with 2 additions and 2 deletions
|
@ -100,9 +100,9 @@ g_mime_signature_status_error (GMimeSignatureError error) {
|
||||||
return (error != GMIME_SIGNATURE_ERROR_NONE);
|
return (error != GMIME_SIGNATURE_ERROR_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t
|
gint64
|
||||||
g_mime_utils_header_decode_date_unix (const char *date) {
|
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 */
|
#else /* GMime >= 3.0 */
|
||||||
|
|
Loading…
Reference in a new issue