X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fmessage.c;h=e7f8ce51d5d3096fe8811220387a2ca84a6ffba2;hb=fa7f733a61a6fe3143198791ab470ddf4d08fdbe;hp=2eb02774f18ccb877e4e966ac6c89ed74a8445d6;hpb=39d11f5b3feb125654d5c2a4e8f93637a12706c3;p=apps%2Fmadmutt.git diff --git a/imap/message.c b/imap/message.c index 2eb0277..e7f8ce5 100644 --- a/imap/message.c +++ b/imap/message.c @@ -27,6 +27,10 @@ #include "pgp.h" #endif +#include "lib/mem.h" +#include "lib/intl.h" +#include "lib/str.h" + #if HAVE_STDINT_H #include #elif HAVE_INTTYPES_H @@ -67,7 +71,7 @@ int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend) #if USE_HCACHE void *hc = NULL; - uint64_t *uid_validity = NULL; + unsigned long *uid_validity = NULL; char uid_buf[64]; #endif /* USE_HCACHE */ @@ -150,7 +154,7 @@ int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend) sprintf (uid_buf, "/%u", h.data->uid); /* XXX --tg 21:41 04-07-11 */ uid_validity = - (uint64_t *) mutt_hcache_fetch (hc, uid_buf, &imap_hcache_keylen); + (unsigned long *) mutt_hcache_fetch (hc, uid_buf, &imap_hcache_keylen); if (uid_validity != NULL && *uid_validity == idata->uid_validity) { ctx->hdrs[msgno] =