diff options
-rw-r--r-- | driver.c | 6 | ||||
-rw-r--r-- | socket.c | 4 | ||||
-rw-r--r-- | socket.h | 2 |
3 files changed, 6 insertions, 6 deletions
@@ -486,7 +486,7 @@ static int smtp_open(struct query *ctl) #endif /* INET6 */ } - if ((ctl->smtp_socket = SockOpen(parsed_host,portnum)) == -1) + if ((ctl->smtp_socket = SockOpen(parsed_host,portnum,NULL)) == -1) continue; /* first, probe for ESMTP */ @@ -503,7 +503,7 @@ static int smtp_open(struct query *ctl) ctl->smtp_socket = -1; /* if opening for ESMTP failed, try SMTP */ - if ((ctl->smtp_socket = SockOpen(parsed_host,portnum)) == -1) + if ((ctl->smtp_socket = SockOpen(parsed_host,portnum,NULL)) == -1) continue; if (SMTP_ok(ctl->smtp_socket) == SM_OK && @@ -1688,7 +1688,7 @@ const struct method *proto; /* protocol method table */ ctl->server.service ? ctl->server.service : protocol->service, ctl->server.netsec)) == -1) #else /* INET6 */ - if ((sock = SockOpen(realhost, port)) == -1) + if ((sock = SockOpen(realhost, port, NULL)) == -1) #endif /* INET6 */ { #if !INET6 @@ -73,7 +73,7 @@ int SockOpen(const char *host, const char *service, const char *options) #endif #endif /* INET_ATON */ -int SockOpen(const char *host, int clientPort) +int SockOpen(const char *host, int clientPort, const char *options) { int sock; #ifndef INET_ATON @@ -220,7 +220,7 @@ int SockPeek(int sock) */ main() { - int sock = SockOpen("localhost", 19); + int sock = SockOpen("localhost", 19, NULL); char buf[80]; while (SockRead(sock, buf, sizeof(buf)-1)) @@ -11,7 +11,7 @@ #if INET6 int SockOpen(const char *host, const char *service, const char *options); #else /* INET6 */ -int SockOpen(const char *host, int clientPort); +int SockOpen(const char *host, int clientPort, const char *options); #endif /* INET6 */ /* |