summaryrefslogtreecommitdiff
path: root/mh/mh_whom.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-06-26 19:37:17 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-06-26 19:37:17 +0000
commit6d905f99a9dc2aaa69ef49ac7e567d2114fddae1 (patch)
treef37fbe4f32e1c99e4ce63ca316160b02ddb652d0 /mh/mh_whom.c
parente02fabd95c03d25682a767ed4fd9b8eb89a821d2 (diff)
downloadmailutils-6d905f99a9dc2aaa69ef49ac7e567d2114fddae1.tar.gz
mailutils-6d905f99a9dc2aaa69ef49ac7e567d2114fddae1.tar.bz2
Use mu_header_sget to retrieve context and configuration settings. Update all callers.
Diffstat (limited to 'mh/mh_whom.c')
-rw-r--r--mh/mh_whom.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mh/mh_whom.c b/mh/mh_whom.c
index 131b64941..c496df5dc 100644
--- a/mh/mh_whom.c
+++ b/mh/mh_whom.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -52,7 +52,7 @@ ismydomain (char *p)
}
int
-mh_alias_expand (char *str, mu_address_t *paddr, int *incl)
+mh_alias_expand (const char *str, mu_address_t *paddr, int *incl)
{
size_t argc;
char **argv;
@@ -119,7 +119,7 @@ mh_alias_expand (char *str, mu_address_t *paddr, int *incl)
static void
-scan_addrs (char *str, int isbcc)
+scan_addrs (const char *str, int isbcc)
{
mu_address_t addr = NULL;
size_t i, count;
@@ -153,8 +153,6 @@ scan_addrs (char *str, int isbcc)
addrcp (&network_rcp, buf, isbcc);
}
mu_address_destroy (&addr);
- free (str); /* FIXME: This will disappear. Note comment to
- mh_context_get_value! */
}
static int
@@ -218,7 +216,7 @@ _print_local_recipient (void *item, void *data)
}
int
-mh_whom (char *filename, int check)
+mh_whom (const char *filename, int check)
{
int rc = 0;
mh_context_t *ctx;

Return to:

Send suggestions and report system problems to the System administrator.