dovecot-2.0: doveconf: Removed unnecessary code.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 20 23:48:25 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/50b34366038d
changeset: 11875:50b34366038d
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 20 21:48:22 2010 +0100
description:
doveconf: Removed unnecessary code.

diffstat:

 src/config/doveconf.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (26 lines):

diff -r 1412056b5ab6 -r 50b34366038d src/config/doveconf.c
--- 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)


More information about the dovecot-cvs mailing list