summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-10-08 16:21:23 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2016-10-08 16:21:23 +0300
commitaac8beae014b6345bc3682c6d0f5b544b2a84956 (patch)
tree4c7d2c798cc468d2eb4c8cb8d8209cba3d233274 /lib
parent87ef8884693eb0cdcdafa2365c86709f33e3a375 (diff)
downloadmailutils-aac8beae014b6345bc3682c6d0f5b544b2a84956.tar.gz
mailutils-aac8beae014b6345bc3682c6d0f5b544b2a84956.tar.bz2
Use mu_c_type_t throughout the code. Get rid of mu_cfg_param_data_type.
* include/mailutils/cfg.h (mu_cfg_param_data_type): Remove. (mu_cfg_param_type): New enum. (mu_cfg_param) <type>: Change type to int. (mu_cfg_cidr): Remove. (mu_cfg_parse_boolean): Remove. All uses updated. * include/mailutils/util.h (mu_c_void): New constant. (mu_c_type_str): New extern/ * libmailutils/string/str_to_c.c (mu_c_type_str): New global. * libmailutils/cfg/format.c (mu_cfg_data_type_string): Rename to mu_c_type_string; change argument type. All uses updated. * libmailutils/cfg/parser.y: Use mu_str_to_c for value conversion. * libmailutils/tests/.gitignore: Update. * libmailutils/tests/Makefile.am: Add strtoc.at; build strtoc * libmailutils/tests/strtoc.at: New file. * libmailutils/tests/strtoc.c: New file. * libmailutils/tests/testsuite.at: Include strtoc.at * comsat/comsat.c: Use mu_c_type_t types. * dotlock/dotlock.c: Likewise. * imap4d/imap4d.c: Likewise. * lib/manlock.c: Likewise. * lib/tcpwrap.c: Likewise. * libmailutils/server/msrv.c: Likewise. * libmu_argp/muinit.c: Likewise. * libmu_cfg/common.c: Likewise. * libmu_cfg/gsasl.c: Likewise. * libmu_cfg/ldap.c: Likewise. * libmu_cfg/pam.c: Likewise. * libmu_cfg/radius.c: Likewise. * libmu_cfg/sieve.c: Likewise. * libmu_cfg/sql.c: Likewise. * libmu_cfg/tls.c: Likewise. * libmu_cfg/virtdomain.c: Likewise. * maidag/maidag.c: Likewise. * mimeview/mimeview.c: Likewise. * movemail/movemail.c: Likewise. * pop3d/pop3d.c: Likewise. * readmsg/readmsg.c: Likewise. * sieve/sieve.c: Likewise.
Diffstat (limited to 'lib')
-rw-r--r--lib/manlock.c4
-rw-r--r--lib/tcpwrap.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/manlock.c b/lib/manlock.c
index cdb65b15b..ded7e0b67 100644
--- a/lib/manlock.c
+++ b/lib/manlock.c
@@ -185,9 +185,9 @@ manlock_open_mailbox (mu_mailbox_t *pmbox, const char *mailbox_name, int def,
struct mu_cfg_param manlock_param[] = {
- { "enable", mu_cfg_bool, &manlock_mandatory_locking, 0, NULL,
+ { "enable", mu_c_bool, &manlock_mandatory_locking, 0, NULL,
N_("Enable mandatory locking.") },
- { "lock-directory", mu_cfg_string, &manlock_lock_dir, 0, NULL,
+ { "lock-directory", mu_c_string, &manlock_lock_dir, 0, NULL,
N_("Set directory for mandatory lock files.") },
{ NULL }
};
diff --git a/lib/tcpwrap.c b/lib/tcpwrap.c
index 585d1a115..f4df64e5a 100644
--- a/lib/tcpwrap.c
+++ b/lib/tcpwrap.c
@@ -53,17 +53,17 @@ mu_tcpwrapper_access (int fd)
}
struct mu_cfg_param tcpwrapper_param[] = {
- { "enable", mu_cfg_bool, &mu_tcp_wrapper_enable, 0, NULL,
+ { "enable", mu_c_bool, &mu_tcp_wrapper_enable, 0, NULL,
N_("Enable TCP wrapper access control. Default is \"yes\".") },
- { "daemon", mu_cfg_string, &mu_tcp_wrapper_daemon, 0, NULL,
+ { "daemon", mu_c_string, &mu_tcp_wrapper_daemon, 0, NULL,
N_("Set daemon name for TCP wrapper lookups. Default is program name."),
N_("name") },
- { "allow-table", mu_cfg_string, &hosts_allow_table,
+ { "allow-table", mu_c_string, &hosts_allow_table,
0, NULL,
N_("Use file for positive client address access control "
"(default: /etc/hosts.allow)."),
N_("file") },
- { "deny-table", mu_cfg_string, &hosts_deny_table,
+ { "deny-table", mu_c_string, &hosts_deny_table,
0, NULL,
N_("Use file for negative client address access control "
"(default: /etc/hosts.deny)."),

Return to:

Send suggestions and report system problems to the System administrator.