Fix a compilation error with gdbm
authorJulien Danjou <julien@danjou.info>
Mon, 13 Nov 2006 10:48:39 +0000 (11:48 +0100)
committerPierre Habouzit <madcoder@debian.org>
Mon, 13 Nov 2006 12:54:33 +0000 (13:54 +0100)
Use struct header_cache instead of typedef

Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
hcache.c

index 9c78a82..496fd09 100644 (file)
--- a/hcache.c
+++ b/hcache.c
@@ -712,7 +712,7 @@ mutt_hcache_delete(void *db, const char *filename,
 
 void *mutt_hcache_open (const char *path, const char *folder)
 {
-  struct header_cache *h = p_new(HEADER_CACHE, 1);
+  struct header_cache *h = p_new(struct header_cache, 1);
   int pagesize =
     atoi (HeaderCachePageSize) ? atoi (HeaderCachePageSize) : 16384;
   h->db = NULL;