#include "lib.h"
#include "md5.h"
-#include "lib/mem.h"
#include "lib/debug.h"
#if HAVE_QDBM
return;
}
- mem_realloc (ptr, siz);
+ p_realloc(ptr, siz);
}
static unsigned char *dump_int (unsigned int i, unsigned char *d, int *off)
void *
mutt_hcache_open(const char *path, const char *folder)
{
- struct header_cache *h = mem_calloc(1, sizeof (HEADER_CACHE));
+ struct header_cache *h = p_new(HEADER_CACHE, 1);
int flags = VL_OWRITER | VL_OCREAT;
h->db = NULL;
h->folder = str_dup(folder);
void *mutt_hcache_open (const char *path, const char *folder)
{
- struct header_cache *h = mem_calloc (1, sizeof (HEADER_CACHE));
+ struct header_cache *h = p_new(HEADER_CACHE, 1);
int pagesize =
atoi (HeaderCachePageSize) ? atoi (HeaderCachePageSize) : 16384;
h->db = NULL;