projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rationalize list handling in mutt a bit.
[apps/madmutt.git]
/
headers.c
diff --git
a/headers.c
b/headers.c
index
ecb5756
..
71bc481
100644
(file)
--- a/
headers.c
+++ b/
headers.c
@@
-36,7
+36,7
@@
void mutt_edit_headers (const char *editor,
ENVELOPE *n;
time_t mtime;
struct stat st;
ENVELOPE *n;
time_t mtime;
struct stat st;
-
LIST
*cur, **last = NULL, *tmp;
+
string_list_t
*cur, **last = NULL, *tmp;
mutt_mktemp (path);
if ((ofp = safe_fopen (path, "w")) == NULL) {
mutt_mktemp (path);
if ((ofp = safe_fopen (path, "w")) == NULL) {
@@
-76,7
+76,7
@@
void mutt_edit_headers (const char *editor,
}
mutt_unlink (body);
}
mutt_unlink (body);
-
mutt_free_list
(&msg->env->userhdrs);
+
string_list_wipe
(&msg->env->userhdrs);
/* Read the temp file back in */
if ((ifp = fopen (path, "r")) == NULL) {
/* Read the temp file back in */
if ((ifp = fopen (path, "r")) == NULL) {
@@
-110,7
+110,7
@@
void mutt_edit_headers (const char *editor,
#ifdef USE_NNTP
if (!option (OPTNEWSSEND))
#endif
#ifdef USE_NNTP
if (!option (OPTNEWSSEND))
#endif
-
mutt_free_list
(&msg->env->references);
+
string_list_wipe
(&msg->env->references);
mutt_expand_aliases_env (msg->env);
mutt_expand_aliases_env (msg->env);
@@
-179,7
+179,7
@@
void mutt_edit_headers (const char *editor,
*last = cur->next;
cur = cur->next;
tmp->next = NULL;
*last = cur->next;
cur = cur->next;
tmp->next = NULL;
-
mutt_free_list
(&tmp);
+
string_list_wipe
(&tmp);
}
}
}
}
}
}