typedef union {
struct timeval timeval;
- uint64_t uid_validity;
+ unsigned long uid_validity;
} validate;
static void *lazy_malloc (size_t siz)
/* This function transforms a header into a char so that it is useable by
* db_store */
static void *mutt_hcache_dump (void *_db, HEADER * h, int *off,
- uint64_t uid_validity)
+ unsigned long uid_validity)
{
struct header_cache *db = _db;
unsigned char *d = NULL;
d = lazy_malloc (sizeof (validate));
if (uid_validity) {
- memcpy (d, &uid_validity, sizeof (uint64_t));
+ memcpy (d, &uid_validity, sizeof (unsigned long));
}
else {
struct timeval now;
int
mutt_hcache_store (void *db, const char *filename, HEADER * header,
- uint64_t uid_validity, size_t (*keylen) (const char *fn))
+ unsigned long uid_validity, size_t (*keylen) (const char *fn))
{
struct header_cache *h = db;
datum key;
int
mutt_hcache_store (void *db, const char *filename, HEADER * header,
- uint64_t uid_validity, size_t (*keylen) (const char *fn))
+ unsigned long uid_validity, size_t (*keylen) (const char *fn))
{
DBT key;
DBT data;