summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-11-19 16:08:48 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2011-11-19 16:11:35 +0200
commit530953e151f011eb2f57918039c402f475431a09 (patch)
tree7682933bdd23a67ece95cc65af80df34d52c1991 /mail
parentc96bc2c092dda2d3c9fe3f1498857c7d4afb56dc (diff)
downloadmailutils-530953e151f011eb2f57918039c402f475431a09.tar.gz
mailutils-530953e151f011eb2f57918039c402f475431a09.tar.bz2
Rename mu_list_do to mu_list_foreach. Add comments to mailutils/list.h
Diffstat (limited to 'mail')
-rw-r--r--mail/send.c6
-rw-r--r--mail/util.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/mail/send.c b/mail/send.c
index a150875cc..12270d275 100644
--- a/mail/send.c
+++ b/mail/send.c
@@ -112,13 +112,13 @@ int
mail_sendheader (int argc, char **argv)
{
if (argc == 1)
- mu_list_do (add_header_list, list_headers, NULL);
+ mu_list_foreach (add_header_list, list_headers, NULL);
else if (argc == 2)
{
if (strchr (argv[1], ':'))
send_append_header (argv[1]);
else
- mu_list_do (add_header_list, list_headers, argv[1]);
+ mu_list_foreach (add_header_list, list_headers, argv[1]);
}
else
{
@@ -207,7 +207,7 @@ void
compose_init (compose_env_t * env)
{
memset (env, 0, sizeof (*env));
- mu_list_do (add_header_list, seed_headers, env);
+ mu_list_foreach (add_header_list, seed_headers, env);
}
int
diff --git a/mail/util.c b/mail/util.c
index bb5a90556..b008048e0 100644
--- a/mail/util.c
+++ b/mail/util.c
@@ -1061,7 +1061,7 @@ _run_and_free (void *item, void *data)
void
util_run_cached_commands (mu_list_t *list)
{
- mu_list_do (*list, _run_and_free, NULL);
+ mu_list_foreach (*list, _run_and_free, NULL);
mu_list_destroy (list);
}

Return to:

Send suggestions and report system problems to the System administrator.