X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=hash.c;h=ef9346d90ce36778a47a5780c0169d26e2c80c86;hp=3cd6140d00929ccc180df07543e74010a11c2be7;hb=1dc7032b59cc5b91d70076ed228bda8caf65a7f3;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/hash.c b/hash.c index 3cd6140..ef9346d 100644 --- a/hash.c +++ b/hash.c @@ -19,8 +19,6 @@ #include "mutt.h" -#include "lib/mem.h" - #define SOMEPRIME 149711 int hash_string (const unsigned char *s, int n) @@ -48,7 +46,7 @@ HASH *hash_create (int nelem) nelem = 2; table->nelem = nelem; table->curnelem = 0; - table->table = mem_calloc (nelem, sizeof (struct hash_elem *)); + table->table = p_new(struct hash_elem *, nelem); return table; }