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);
set_option (OPTFORCEREDRAWINDEX);
}
else
- mutt_free_alias (&Aliases);
+ alias_delete(&Aliases);
break;
}
else
else
Aliases = tmp->next;
tmp->next = NULL;
- mutt_free_alias (&tmp);
+ alias_delete(&tmp);
break;
}
last = tmp;
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)) {
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)