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]
/
hash.c
diff --git
a/hash.c
b/hash.c
index
3cd6140
..
ef9346d
100644
(file)
--- a/
hash.c
+++ b/
hash.c
@@
-19,8
+19,6
@@
#include "mutt.h"
#include "mutt.h"
-#include "lib/mem.h"
-
#define SOMEPRIME 149711
int hash_string (const unsigned char *s, int n)
#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;
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;
}
return table;
}