diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:17:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:17:51 +0000 |
commit | b3c486c6c25027081cdc4015cd7b2e5d6f05ab8d (patch) | |
tree | 1305bc82d9b981906f9f63e573d86167fd59361d | |
parent | 0abdc15849655ba7059604c834759bdc5db43773 (diff) | |
download | fetchmail-b3c486c6c25027081cdc4015cd7b2e5d6f05ab8d.tar.gz fetchmail-b3c486c6c25027081cdc4015cd7b2e5d6f05ab8d.tar.bz2 fetchmail-b3c486c6c25027081cdc4015cd7b2e5d6f05ab8d.zip |
STEP 2: Prepare for SockGets/SockPuts argument change.
svn path=/trunk/; revision=445
-rw-r--r-- | driver.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |