diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-12-06 00:36:56 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-12-06 00:36:56 +0200 |
commit | 561a4274464e2e35ce5f696ae6fb9c6431032db1 (patch) | |
tree | 4624e404aae472236b8475e6376864afd9c62175 /mail | |
parent | f606ab21eafbd947113daae4c41328118d51a0eb (diff) | |
download | mailutils-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.c | 4 |
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); |