more updates in the build system, gettext related.
[apps/madmutt.git] / keymap.c
index d28ca0f..707a8cb 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -12,6 +12,7 @@
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/macros.h>
 
 #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 <stdlib.h>
@@ -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;