diff options
Diffstat (limited to 'src/tcpwrap.c')
-rw-r--r-- | src/tcpwrap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tcpwrap.c b/src/tcpwrap.c index 4a3e59b..9d7e7d0 100644 --- a/src/tcpwrap.c +++ b/src/tcpwrap.c @@ -15,7 +15,6 @@ with wydawca. If not, see <http://www.gnu.org/licenses/>. */ #include "wydawca.h" -#include <mailutils/syslog.h> #ifdef WITH_LIBWRAP # include <tcpd.h> @@ -31,13 +30,16 @@ cb_syslog_priority(enum grecs_callback_command cmd, grecs_node_t *node, { grecs_locus_t *locus = &node->locus; grecs_value_t *value = node->v.value; + int pri; if (assert_string_arg(locus, cmd, value)) return 1; - - if (mu_string_to_syslog_priority(value->v.string, varptr)) + pri = wy_strtopri(value->v.string); + if (pri == -1) grecs_error(locus, 0, _("Unknown syslog priority `%s'"), value->v.string); + else + *(int*)varptr = pri; return 0; } |