X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=pop%2Fmx_pop.c;h=f30dbbd088a7dd620b0f9b7e4cfaccd5b21aa402;hb=723f7ae3f24f7881c9ce87abf933cd5bec4ac0bc;hp=822471e6209f4b4157ddfa4af483102db3332652;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a;p=apps%2Fmadmutt.git diff --git a/pop/mx_pop.c b/pop/mx_pop.c index 822471e..f30dbbd 100644 --- a/pop/mx_pop.c +++ b/pop/mx_pop.c @@ -10,6 +10,8 @@ #include #include +#include +#include #include "mutt.h" #include "pop.h" @@ -17,11 +19,6 @@ #include "mx.h" #include "mx_pop.h" -#include "lib/mem.h" -#include "lib/str.h" - -#include "url.h" - static int pop_is_magic (const char* path, struct stat* st) { url_scheme_t s = url_check_scheme (NONULL (path)); return ((s == U_POP || s == U_POPS) ? M_POP : -1); @@ -41,7 +38,7 @@ static int acl_check_pop (CONTEXT* ctx, int bit) { } mx_t* pop_reg_mx (void) { - mx_t* fmt = mem_calloc (1, sizeof (mx_t)); + mx_t* fmt = p_new(mx_t, 1); /* make up mx_t record... */ fmt->type = M_POP;