changeset 11875:50b34366038d

doveconf: Removed unnecessary code.
author Timo Sirainen <tss@iki.fi>
date Tue, 20 Jul 2010 21:48:22 +0100
parents 1412056b5ab6
children a15b694f1d64
files src/config/doveconf.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/doveconf.c	Tue Jul 20 21:42:54 2010 +0100
+++ b/src/config/doveconf.c	Tue Jul 20 21:48:22 2010 +0100
@@ -302,10 +302,7 @@
 	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 @@
 
 	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)