oops, makedoc is used in the build process.
[apps/madmutt.git] / rfc1524.c
index c0397ad..5b70e5a 100644 (file)
--- a/rfc1524.c
+++ b/rfc1524.c
@@ -28,7 +28,6 @@
 #include "rfc1524.h"
 #include "attach.h"
 
-#include "lib/mem.h"
 #include "lib/intl.h"
 #include "lib/str.h"
 #include "lib/debug.h"
@@ -270,7 +269,7 @@ static int rfc1524_mailcap_parse (BODY * a,
           if (get_field_text (field + 4, &test_command, type, filename, line)
               && test_command) {
             len = str_len (test_command) + STRING;
-            mem_realloc (&test_command, len);
+            p_realloc(&test_command, len);
             rfc1524_expand_command (a, a->filename, type, test_command, len);
             if (mutt_system (test_command)) {
               /* a non-zero exit code means test failed */
@@ -321,7 +320,7 @@ static int rfc1524_mailcap_parse (BODY * a,
 
 rfc1524_entry *rfc1524_new_entry (void)
 {
-  return (rfc1524_entry *) mem_calloc (1, sizeof (rfc1524_entry));
+  return p_new(rfc1524_entry, 1);
 }
 
 void rfc1524_free_entry (rfc1524_entry ** entry)