X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Futil.c;h=1f02969853079d8f1fc798144a32fc197c007759;hp=1025cea67acbea69b89950d0d58c34251eeff6e9;hb=9a1efcc01ddeca4106847f8eb28a704aca2dcf0b;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/imap/util.c b/imap/util.c index 1025cea..1f02969 100644 --- a/imap/util.c +++ b/imap/util.c @@ -22,8 +22,7 @@ #include "imap_private.h" #include "mutt_ssl.h" -#include "lib/mem.h" -#include "lib/intl.h" +#include #include "lib/debug.h" #include @@ -191,7 +190,7 @@ void imap_error (const char *where, const char *msg) * Returns NULL on failure (no mem) */ IMAP_DATA *imap_new_idata (void) { - return mem_calloc (1, sizeof (IMAP_DATA)); + return p_new(IMAP_DATA, 1); } /* imap_free_idata: Release and clear storage in an IMAP_DATA structure. */ @@ -497,7 +496,7 @@ void imap_keepalive (void) if (idata->ctx) ctx = idata->ctx; else { - ctx = mem_calloc (1, sizeof (CONTEXT)); + ctx = p_new(CONTEXT, 1); ctx->data = idata; } imap_check_mailbox (ctx, NULL, 1);