From: Timo Sirainen Date: Tue, 20 Jul 2010 20:48:22 +0000 (+0100) Subject: doveconf: Removed unnecessary code. X-Git-Tag: 2.0.rc3~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb5c37cf75b097e05d52262af0f46f13d88b1a30;p=thirdparty%2Fdovecot%2Fcore.git doveconf: Removed unnecessary code. --- 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)