X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=f137e359965bb6849855390de2d6965f50b3f8d7;hp=218e29c0c31c566659aa8fe6cb83f765cdc37a5e;hb=0f6739c5be4203bec0fa32962e6ab13349da703b;hpb=fd25c07c1e9e19606b1b6d5533df1f6239455036 diff --git a/init.c b/init.c index 218e29c..f137e35 100644 --- a/init.c +++ b/init.c @@ -1384,7 +1384,7 @@ static int parse_unalias (BUFFER * buf, BUFFER * s, unsigned long data __attribute__ ((unused)), BUFFER * err __attribute__ ((unused))) { - ALIAS *tmp, *last = NULL; + alias_t *tmp, *last = NULL; do { mutt_extract_token (buf, s, 0); @@ -1396,7 +1396,7 @@ static int parse_unalias (BUFFER * buf, BUFFER * s, set_option (OPTFORCEREDRAWINDEX); } else - mutt_free_alias (&Aliases); + alias_delete(&Aliases); break; } else @@ -1413,7 +1413,7 @@ static int parse_unalias (BUFFER * buf, BUFFER * s, else Aliases = tmp->next; tmp->next = NULL; - mutt_free_alias (&tmp); + alias_delete(&tmp); break; } last = tmp; @@ -1427,8 +1427,8 @@ static int parse_alias (BUFFER * buf, BUFFER * s, unsigned long data __attribute__ ((unused)), BUFFER * err) { - ALIAS *tmp = Aliases; - ALIAS *last = NULL; + alias_t *tmp = Aliases; + alias_t *last = NULL; char *estr = NULL; if (!MoreArgs (s)) { @@ -1449,8 +1449,7 @@ static int parse_alias (BUFFER * buf, BUFFER * s, if (!tmp) { /* create a new alias */ - tmp = p_new(ALIAS, 1); - tmp->self = tmp; + tmp = alias_new(); tmp->name = m_strdup(buf->data); /* give the main addressbook code a chance */ if (CurrentMenu == MENU_ALIAS)