projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more updates in the build system, gettext related.
[apps/madmutt.git]
/
hcache.c
diff --git
a/hcache.c
b/hcache.c
index
e31aabc
..
fd706db
100644
(file)
--- a/
hcache.c
+++ b/
hcache.c
@@
-51,7
+51,6
@@
#include "lib.h"
#include "md5.h"
#include "lib.h"
#include "md5.h"
-#include "lib/mem.h"
#include "lib/debug.h"
#if HAVE_QDBM
#include "lib/debug.h"
#if HAVE_QDBM
@@
-101,7
+100,7
@@
static void lazy_realloc (void *ptr, size_t siz)
return;
}
return;
}
-
mem_realloc
(ptr, siz);
+
p_realloc
(ptr, siz);
}
static unsigned char *dump_int (unsigned int i, unsigned char *d, int *off)
}
static unsigned char *dump_int (unsigned int i, unsigned char *d, int *off)
@@
-609,7
+608,7
@@
HEADER *mutt_hcache_restore (const unsigned char *d, HEADER ** oh)
void *
mutt_hcache_open(const char *path, const char *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 flags = VL_OWRITER | VL_OCREAT;
h->db = NULL;
h->folder = str_dup(folder);
int flags = VL_OWRITER | VL_OCREAT;
h->db = NULL;
h->folder = str_dup(folder);
@@
-731,7
+730,7
@@
mutt_hcache_delete(void *db, const char *filename,
void *mutt_hcache_open (const char *path, const char *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;
int pagesize =
atoi (HeaderCachePageSize) ? atoi (HeaderCachePageSize) : 16384;
h->db = NULL;