aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--driver.c6
-rw-r--r--socket.c4
-rw-r--r--socket.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/driver.c b/driver.c
index a1bb1dd3..5ed1e70a 100644
--- a/driver.c
+++ b/driver.c
@@ -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
diff --git a/socket.c b/socket.c
index 1f8733a9..9fd04024 100644
--- a/socket.c
+++ b/socket.c
@@ -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))
diff --git a/socket.h b/socket.h
index b7d72a55..7e8441a8 100644
--- a/socket.h
+++ b/socket.h
@@ -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 */
/*