projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops, makedoc is used in the build process.
[apps/madmutt.git]
/
buffy.c
diff --git
a/buffy.c
b/buffy.c
index
b00170b
..
da37268
100644
(file)
--- a/
buffy.c
+++ b/
buffy.c
@@
-14,6
+14,8
@@
# include "config.h"
#endif
# include "config.h"
#endif
+#include <lib-lib/mem.h>
+
#include "mutt.h"
#include "buffy.h"
#include "buffer.h"
#include "mutt.h"
#include "buffy.h"
#include "buffer.h"
@@
-27,7
+29,6
@@
#include "imap.h"
#endif
#include "imap.h"
#endif
-#include "lib/mem.h"
#include "lib/intl.h"
#include <string.h>
#include "lib/intl.h"
#include <string.h>
@@
-170,8
+171,8
@@
void buffy_update_mailbox (BUFFY * b)
/* func to free buffy for list_del() */
static void buffy_free (BUFFY** p) {
/* func to free buffy for list_del() */
static void buffy_free (BUFFY** p) {
-
mem_fre
e(&(*p)->path);
-
mem_fre
e(p);
+
p_delet
e(&(*p)->path);
+
p_delet
e(p);
}
int buffy_lookup (const char* path) {
}
int buffy_lookup (const char* path) {
@@
-220,7
+221,7
@@
int buffy_parse_mailboxes (BUFFER * path, BUFFER * s, unsigned long data,
}
if (i < 0) {
}
if (i < 0) {
- tmp =
mem_calloc (1, sizeof (BUFFY)
);
+ tmp =
p_new(BUFFY, 1
);
tmp->path = str_dup (buf);
tmp->magic = 0;
list_push_back (&Incoming, tmp);
tmp->path = str_dup (buf);
tmp->magic = 0;
list_push_back (&Incoming, tmp);