X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=keymap.c;h=707a8cb729ec871ab8016d78f83407b8a3f743f1;hp=d28ca0f0874491f86899dbc2f24cecff11603d42;hb=1dc7032b59cc5b91d70076ed228bda8caf65a7f3;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/keymap.c b/keymap.c index d28ca0f..707a8cb 100644 --- a/keymap.c +++ b/keymap.c @@ -12,6 +12,7 @@ #endif #include +#include #include "mutt.h" #include "buffer.h" @@ -22,8 +23,6 @@ #include "mapping.h" #include "mutt_crypt.h" -#include "lib/mem.h" -#include "lib/intl.h" #include "lib/str.h" #include @@ -99,7 +98,7 @@ static struct keymap_t *allocKeys(int len, keycode_t *keys) { struct keymap_t *p; - p = mem_calloc (1, sizeof (struct keymap_t)); + p = p_new(struct keymap_t, 1); p->len = len; p->keys = p_dup(keys, len); return p;