diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:29:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:29:49 +0000 |
commit | a2278043c64feb80565c1a6bf6456c687f5a5923 (patch) | |
tree | e3d0624b23dd944f88fefb3e2de4b2f0d8359515 /driver.c | |
parent | b3c486c6c25027081cdc4015cd7b2e5d6f05ab8d (diff) | |
download | fetchmail-a2278043c64feb80565c1a6bf6456c687f5a5923.tar.gz fetchmail-a2278043c64feb80565c1a6bf6456c687f5a5923.tar.bz2 fetchmail-a2278043c64feb80565c1a6bf6456c687f5a5923.zip |
STEP 3: File pointer arguments in SockGets()/SockPuts().
svn path=/trunk/; revision=446
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -506,7 +506,7 @@ struct query *ctl; /* query control record */ oldlen = 0; while (delimited || len > 0) { - if ((n = SockGets(fileno(sockfp),buf,sizeof(buf))) < 0) + if ((n = SockGets(buf,sizeof(buf),sockfp)) < 0) return(PS_SOCKET); vtalarm(ctl->timeout); @@ -1073,7 +1073,7 @@ va_dcl { vsprintf(buf + strlen(buf), fmt, ap); va_end(ap); - SockPuts(fileno(sockfp), buf); + SockPuts(buf, sockfp); if (outlevel == O_VERBOSE) { @@ -1114,7 +1114,7 @@ va_dcl { vsprintf(buf + strlen(buf), fmt, ap); va_end(ap); - SockPuts(fileno(sockfp), buf); + SockPuts(buf, sockfp); if (outlevel == O_VERBOSE) { char *cp; |