From 2cabbf89f9f696a4786476a4eda7a59a1c16d486 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 2 Aug 2005 00:41:50 +0000 Subject: Remove port/service dualism and make everything a service. svn path=/trunk/; revision=4219 --- driver.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 5a2c8976..71bf3f02 100644 --- a/driver.c +++ b/driver.c @@ -939,11 +939,7 @@ static int do_session( /* setjmp returned zero -> normal operation */ char buf[MSGBUFSIZE+1], *realhost; int count, new, bytes; -#ifdef INET6_ENABLE int fetches, dispatches, oldphase; -#else /* INET6_ENABLE */ - int port, fetches, dispatches, oldphase; -#endif /* INET6_ENABLE */ struct idlist *idp; /* execute pre-initialization command, if any */ @@ -959,13 +955,6 @@ static int do_session( oldphase = phase; phase = OPEN_WAIT; set_timeout(mytimeout); -#ifndef INET6_ENABLE -#ifdef SSL_ENABLE - port = ctl->server.port ? ctl->server.port : ( ctl->use_ssl ? ctl->server.base_protocol->sslport : ctl->server.base_protocol->port ); -#else - port = ctl->server.port ? ctl->server.port : ctl->server.base_protocol->port; -#endif -#endif /* !INET6_ENABLE */ #ifdef HAVE_PKG_hesiod /* If either the pollname or vianame are "hesiod" we want to @@ -1081,13 +1070,9 @@ static int do_session( /* allow time for the port to be set up if we have a plugin */ if (ctl->server.plugin) (void)sleep(1); -#ifdef INET6_ENABLE if ((mailserver_socket = SockOpen(realhost, ctl->server.service ? ctl->server.service : ( ctl->use_ssl ? ctl->server.base_protocol->sslservice : ctl->server.base_protocol->service ), ctl->server.plugin)) == -1) -#else /* INET6_ENABLE */ - if ((mailserver_socket = SockOpen(realhost, port, ctl->server.plugin)) == -1) -#endif /* INET6_ENABLE */ { char errbuf[BUFSIZ]; #ifndef INET6_ENABLE @@ -1574,7 +1559,7 @@ is restored.")); break; } if (msg) { - char *stem; + const char *stem; if (phase == FORWARDING_WAIT || phase == LISTENER_WAIT) stem = GT_("%s error while delivering to SMTP host %s\n"); -- cgit v1.2.3