summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-12-06 00:36:56 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2011-12-06 00:36:56 +0200
commit561a4274464e2e35ce5f696ae6fb9c6431032db1 (patch)
tree4624e404aae472236b8475e6376864afd9c62175 /mail
parentf606ab21eafbd947113daae4c41328118d51a0eb (diff)
downloadmailutils-561a4274464e2e35ce5f696ae6fb9c6431032db1.tar.gz
mailutils-561a4274464e2e35ce5f696ae6fb9c6431032db1.tar.bz2
Use list LIFO access where appropriate.
* libmu_sieve/runtime.c (_mu_sv_instr_push) (_mu_sv_instr_pop): Use mu_list_push and mu_list_pop. * mail/alias.c (recursive_alias_expand): Likewise.
Diffstat (limited to 'mail')
-rw-r--r--mail/alias.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/alias.c b/mail/alias.c
index 16e8e8a73..beb294bf8 100644
--- a/mail/alias.c
+++ b/mail/alias.c
@@ -131,9 +131,9 @@ recursive_alias_expand (const char *name, mu_list_t exlist, mu_list_t origlist)
mu_iterator_current (itr, (void **)&word);
if (mu_list_locate (origlist, word, NULL) == MU_ERR_NOENT)
{
- mu_list_prepend (origlist, word);
+ mu_list_push (origlist, word);
recursive_alias_expand (word, exlist, origlist);
- mu_list_remove (origlist, word);
+ mu_list_pop (origlist, NULL);
}
}
mu_iterator_destroy (&itr);

Return to:

Send suggestions and report system problems to the System administrator.