From b3c486c6c25027081cdc4015cd7b2e5d6f05ab8d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 31 Oct 1996 06:17:51 +0000 Subject: STEP 2: Prepare for SockGets/SockPuts argument change. svn path=/trunk/; revision=445 --- driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/driver.c b/driver.c index 4b030c27..9e5b6f56 100644 --- a/driver.c +++ b/driver.c @@ -486,9 +486,9 @@ struct query *ctl; return(ctl->smtp_socket); } -static int gen_readmsg (socket, len, delimited, ctl) +static int gen_readmsg (sockfp, len, delimited, ctl) /* read message content and ship to SMTP or MDA */ -int socket; /* to which the server is connected */ +FILE *sockfp; /* to which the server is connected */ long len; /* length of message */ int delimited; /* does the protocol use a message delimiter? */ struct query *ctl; /* query control record */ @@ -506,7 +506,7 @@ struct query *ctl; /* query control record */ oldlen = 0; while (delimited || len > 0) { - if ((n = SockGets(socket,buf,sizeof(buf))) < 0) + if ((n = SockGets(fileno(sockfp),buf,sizeof(buf))) < 0) return(PS_SOCKET); vtalarm(ctl->timeout); @@ -967,7 +967,7 @@ const struct method *proto; /* protocol method table */ } /* read the message and ship it to the output sink */ - ok = gen_readmsg(fileno(sockfp), + ok = gen_readmsg(sockfp, len, protocol->delimited, ctl); -- cgit v1.2.3