diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-02-20 17:17:40 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-02-20 17:17:40 +0000 |
commit | 8bfee971326790997eeb468290e2e1f533a30525 (patch) | |
tree | 37cfd05c6cc4637c7490571c7493a85ecf67f7bc | |
parent | 1d531f550dc91548443d90ed04899c9b16a1ce50 (diff) | |
download | fetchmail-8bfee971326790997eeb468290e2e1f533a30525.tar.gz fetchmail-8bfee971326790997eeb468290e2e1f533a30525.tar.bz2 fetchmail-8bfee971326790997eeb468290e2e1f533a30525.zip |
Add option arg to IPv4 code.
svn path=/trunk/; revision=1662
-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 */ /* |