projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move intl.h into lib-lib/macros.h
[apps/madmutt.git]
/
imap
/
util.c
diff --git
a/imap/util.c
b/imap/util.c
index
1025cea
..
1f02969
100644
(file)
--- a/
imap/util.c
+++ b/
imap/util.c
@@
-22,8
+22,7
@@
#include "imap_private.h"
#include "mutt_ssl.h"
#include "imap_private.h"
#include "mutt_ssl.h"
-#include "lib/mem.h"
-#include "lib/intl.h"
+#include <lib-lib/macros.h>
#include "lib/debug.h"
#include <stdlib.h>
#include "lib/debug.h"
#include <stdlib.h>
@@
-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)
{
* 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. */
}
/* 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 {
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);
ctx->data = idata;
}
imap_check_mailbox (ctx, NULL, 1);