From cb5c37cf75b097e05d52262af0f46f13d88b1a30 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Jul 2010 21:48:22 +0100 Subject: [PATCH] doveconf: Removed unnecessary code. --- src/config/doveconf.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 2b39c82b7a..f0a340b849 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -302,10 +302,7 @@ config_dump_filter_begin(string_t *str, unsigned int indent = 0; if (filter->local_bits > 0) { - str_append_n(str, indent_str, indent*2); - str_printfa(str, "local %s", - filter->local_host != NULL ? filter->local_host : - net_ip2addr(&filter->local_net)); + str_printfa(str, "local %s", filter->local_host); if (IPADDR_IS_V4(&filter->local_net)) { if (filter->local_bits != 32) @@ -326,9 +323,7 @@ config_dump_filter_begin(string_t *str, if (filter->remote_bits > 0) { str_append_n(str, indent_str, indent*2); - str_printfa(str, "remote %s", - filter->remote_host != NULL ? filter->remote_host : - net_ip2addr(&filter->remote_net)); + str_printfa(str, "remote %s", filter->remote_host); if (IPADDR_IS_V4(&filter->remote_net)) { if (filter->remote_bits != 32) -- 2.47.3