projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop mem_alloc and mem_free, use my own hand crafted optmized macros that
[apps/madmutt.git]
/
pgpkey.c
diff --git
a/pgpkey.c
b/pgpkey.c
index
3804817
..
1136ee5
100644
(file)
--- a/
pgpkey.c
+++ b/
pgpkey.c
@@
-12,6
+12,8
@@
# include "config.h"
#endif
# include "config.h"
#endif
+#include <lib-lib/mem.h>
+
#include "mutt.h"
#include "enter.h"
#include "ascii.h"
#include "mutt.h"
#include "enter.h"
#include "ascii.h"
@@
-625,7
+627,7
@@
static pgp_key_t pgp_select_key (pgp_key_t keys, ADDRESS * p, const char *s)
}
mutt_menuDestroy (&menu);
}
mutt_menuDestroy (&menu);
-
mem_free
(&KeyTable);
+
p_delete
(&KeyTable);
set_option (OPTNEEDREDRAW);
set_option (OPTNEEDREDRAW);
@@
-661,7
+663,7
@@
pgp_key_t pgp_ask_for_key (char *tag, char *whatfor,
if (l)
str_replace (&l->dflt, resp);
else {
if (l)
str_replace (&l->dflt, resp);
else {
- l =
mem_malloc (sizeof (struct pgp_cache)
);
+ l =
p_new(struct pgp_cache, 1
);
l->next = id_defaults;
id_defaults = l;
l->what = str_dup (whatfor);
l->next = id_defaults;
id_defaults = l;
l->what = str_dup (whatfor);
@@
-770,7
+772,7
@@
static LIST *pgp_add_string_to_hints (LIST * hints, const char *str)
hints = mutt_add_list (hints, t);
}
hints = mutt_add_list (hints, t);
}
-
mem_free
(&scratch);
+
p_delete
(&scratch);
return hints;
}
return hints;
}