aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-31 08:19:01 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-31 08:19:01 +0000
commit5eb2e5586a91fc08cb9a8ddbd39416deccad08d8 (patch)
treee0f348d03490e9609d84f78854c8ba8d070bd03c /driver.c
parentd3be49ac9e5a338f15056b7c5b14aa905bb1f474 (diff)
downloadfetchmail-5eb2e5586a91fc08cb9a8ddbd39416deccad08d8.tar.gz
fetchmail-5eb2e5586a91fc08cb9a8ddbd39416deccad08d8.tar.bz2
fetchmail-5eb2e5586a91fc08cb9a8ddbd39416deccad08d8.zip
STEP 8: All socket writes now go through SockWrite.
svn path=/trunk/; revision=451
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index b3e8f2c7..126e85ad 100644
--- a/driver.c
+++ b/driver.c
@@ -705,7 +705,7 @@ struct query *ctl; /* query control record */
if (ctl->mda[0])
n = write(mboxfd,headers,oldlen);
else
- n = SockPuts(headers, sinkfp);
+ n = SockWrite(headers, oldlen, sinkfp);
if (n < 0)
{
@@ -722,7 +722,7 @@ struct query *ctl; /* query control record */
/* SMTP byte-stuffing */
if (*bufp == '.' && ctl->mda[0] == 0)
- SockPuts(".", sinkfp);
+ SockWrite(".", 1, sinkfp);
/* replace all LFs with CR-LF in the line */
if (!ctl->mda[0])
@@ -739,7 +739,7 @@ struct query *ctl; /* query control record */
if (ctl->mda[0])
n = write(mboxfd,bufp,strlen(bufp));
else
- n = SockPuts(bufp, sinkfp);
+ n = SockWrite(bufp, strlen(bufp), sinkfp);
if (!ctl->mda[0])
free(bufp);
@@ -1087,7 +1087,7 @@ va_dcl {
va_end(ap);
strcat(buf, "\r\n");
- SockPuts(buf, sockfp);
+ SockWrite(buf, strlen(buf), sockfp);
if (outlevel == O_VERBOSE)
{
@@ -1129,7 +1129,7 @@ va_dcl {
va_end(ap);
strcat(buf, "\r\n");
- SockPuts(buf, sockfp);
+ SockWrite(buf, strlen(buf), sockfp);
if (outlevel == O_VERBOSE)
{
char *cp;