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; | |||
26 | int allow_severity = LOG_INFO; | 26 | int allow_severity = LOG_INFO; |
27 | 27 | ||
28 | static int | 28 | static int |
29 | cb_syslog_priority (enum gconf_callback_command cmd, | 29 | cb_syslog_priority (enum grecs_callback_command cmd, |
30 | gconf_locus_t *locus, | 30 | grecs_locus_t *locus, |
31 | void *varptr, | 31 | void *varptr, |
32 | gconf_value_t *value, | 32 | grecs_value_t *value, |
33 | void *cb_data) | 33 | void *cb_data) |
34 | { | 34 | { |
35 | if (assert_string_arg (locus, cmd, value)) | 35 | if (assert_string_arg (locus, cmd, value)) |
36 | return 1; | 36 | return 1; |
37 | 37 | ||
38 | if (mu_string_to_syslog_priority (value->v.string, varptr)) | 38 | if (mu_string_to_syslog_priority (value->v.string, varptr)) |
39 | gconf_error (locus, 0, _("Unknown syslog priority `%s'"), | 39 | grecs_error (locus, 0, _("Unknown syslog priority `%s'"), |
40 | value->v.string); | 40 | value->v.string); |
41 | return 0; | 41 | return 0; |
42 | } | 42 | } |
43 | 43 | ||
44 | struct gconf_keyword tcpwrapper_kw[] = { | 44 | struct grecs_keyword tcpwrapper_kw[] = { |
45 | { "enable", NULL, | 45 | { "enable", NULL, |
46 | N_("Enable TCP wrapper access control. Default is \"yes\"."), | 46 | N_("Enable TCP wrapper access control. Default is \"yes\"."), |
47 | gconf_type_bool, &tcpwrap_enable }, | 47 | grecs_type_bool, &tcpwrap_enable }, |
48 | { "daemon", N_("name"), | 48 | { "daemon", N_("name"), |
49 | N_("Set daemon name for TCP wrapper lookups. Default is program name."), | 49 | N_("Set daemon name for TCP wrapper lookups. Default is program name."), |
50 | gconf_type_string, &tcpwrap_daemon }, | 50 | grecs_type_string, &tcpwrap_daemon }, |
51 | { "allow-table", N_("file"), | 51 | { "allow-table", N_("file"), |
52 | N_("Use file for positive client address access control " | 52 | N_("Use file for positive client address access control " |
53 | "(default: /etc/hosts.allow)."), | 53 | "(default: /etc/hosts.allow)."), |
54 | gconf_type_string, &hosts_allow_table }, | 54 | grecs_type_string, &hosts_allow_table }, |
55 | { "deny-table", N_("file"), | 55 | { "deny-table", N_("file"), |
56 | N_("Use file for negative client address access control " | 56 | N_("Use file for negative client address access control " |
57 | "(default: /etc/hosts.deny)."), | 57 | "(default: /etc/hosts.deny)."), |
58 | gconf_type_string, &hosts_deny_table }, | 58 | grecs_type_string, &hosts_deny_table }, |
59 | { "allow-syslog-priority", N_("prio"), | 59 | { "allow-syslog-priority", N_("prio"), |
60 | N_("Log host allows at this syslog priority."), | 60 | N_("Log host allows at this syslog priority."), |
61 | gconf_type_string, &allow_severity, 0, cb_syslog_priority }, | 61 | grecs_type_string, &allow_severity, 0, cb_syslog_priority }, |
62 | { "deny-syslog-priority", N_("prio"), | 62 | { "deny-syslog-priority", N_("prio"), |
63 | N_("Log host denies at this syslog priority."), | 63 | N_("Log host denies at this syslog priority."), |
64 | gconf_type_string, &deny_severity, 0, cb_syslog_priority }, | 64 | grecs_type_string, &deny_severity, 0, cb_syslog_priority }, |
65 | { NULL } | 65 | { NULL } |
66 | }; | 66 | }; |
67 | 67 | ||