X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=pop%2Fmx_pop.c;h=c1f204884897449d9b510e34998d9ba7c0fab871;hb=10b7c16c8905d1b7ceaeeb6cfab9ad2ec03d8780;hp=822471e6209f4b4157ddfa4af483102db3332652;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a;p=apps%2Fmadmutt.git diff --git a/pop/mx_pop.c b/pop/mx_pop.c index 822471e..c1f2048 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,17 +19,12 @@ #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) { +static int pop_is_magic (const char* path, struct stat* st __attribute__ ((unused))) { url_scheme_t s = url_check_scheme (NONULL (path)); return ((s == U_POP || s == U_POPS) ? M_POP : -1); } -static int acl_check_pop (CONTEXT* ctx, int bit) { +static int acl_check_pop (CONTEXT* ctx __attribute__ ((unused)), int bit) { switch (bit) { case ACL_INSERT: /* editing messages */ case ACL_WRITE: /* change importance */ @@ -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;