diff options
Diffstat (limited to 'src/tcpwrap.c')
-rw-r--r-- | src/tcpwrap.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/tcpwrap.c b/src/tcpwrap.c index eccf21b..ac92b62 100644 --- a/src/tcpwrap.c +++ b/src/tcpwrap.c @@ -26,42 +26,42 @@ int deny_severity = LOG_INFO; int allow_severity = LOG_INFO; static int -cb_syslog_priority (enum gconf_callback_command cmd, - gconf_locus_t *locus, +cb_syslog_priority (enum grecs_callback_command cmd, + grecs_locus_t *locus, void *varptr, - gconf_value_t *value, + grecs_value_t *value, void *cb_data) { if (assert_string_arg (locus, cmd, value)) return 1; if (mu_string_to_syslog_priority (value->v.string, varptr)) - gconf_error (locus, 0, _("Unknown syslog priority `%s'"), + grecs_error (locus, 0, _("Unknown syslog priority `%s'"), value->v.string); return 0; } -struct gconf_keyword tcpwrapper_kw[] = { +struct grecs_keyword tcpwrapper_kw[] = { { "enable", NULL, N_("Enable TCP wrapper access control. Default is \"yes\"."), - gconf_type_bool, &tcpwrap_enable }, + grecs_type_bool, &tcpwrap_enable }, { "daemon", N_("name"), N_("Set daemon name for TCP wrapper lookups. Default is program name."), - gconf_type_string, &tcpwrap_daemon }, + grecs_type_string, &tcpwrap_daemon }, { "allow-table", N_("file"), N_("Use file for positive client address access control " "(default: /etc/hosts.allow)."), - gconf_type_string, &hosts_allow_table }, + grecs_type_string, &hosts_allow_table }, { "deny-table", N_("file"), N_("Use file for negative client address access control " "(default: /etc/hosts.deny)."), - gconf_type_string, &hosts_deny_table }, + grecs_type_string, &hosts_deny_table }, { "allow-syslog-priority", N_("prio"), N_("Log host allows at this syslog priority."), - gconf_type_string, &allow_severity, 0, cb_syslog_priority }, + grecs_type_string, &allow_severity, 0, cb_syslog_priority }, { "deny-syslog-priority", N_("prio"), N_("Log host denies at this syslog priority."), - gconf_type_string, &deny_severity, 0, cb_syslog_priority }, + grecs_type_string, &deny_severity, 0, cb_syslog_priority }, { NULL } }; |