aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-31 06:29:49 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-31 06:29:49 +0000
commita2278043c64feb80565c1a6bf6456c687f5a5923 (patch)
treee3d0624b23dd944f88fefb3e2de4b2f0d8359515 /pop3.c
parentb3c486c6c25027081cdc4015cd7b2e5d6f05ab8d (diff)
downloadfetchmail-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 'pop3.c')
-rw-r--r--pop3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pop3.c b/pop3.c
index 74173c1f..0960085d 100644
--- a/pop3.c
+++ b/pop3.c
@@ -31,7 +31,7 @@ char *argbuf;
char buf [POPBUFSIZE+1];
char *bufp;
- if (SockGets(fileno(sockfp), buf, sizeof(buf)) >= 0) {
+ if (SockGets(buf, sizeof(buf), sockfp) >= 0) {
if (outlevel == O_VERBOSE)
fprintf(stderr,"%s\n",buf);
@@ -171,7 +171,7 @@ int *countp, *newp;
int num;
*newp = 0;
- while (SockGets(fileno(sockfp), buf, sizeof(buf)) >= 0)
+ while (SockGets(buf, sizeof(buf), sockfp) >= 0)
{
if (outlevel == O_VERBOSE)
fprintf(stderr,"%s\n",buf);
@@ -205,7 +205,7 @@ int *sizes;
{
char buf [POPBUFSIZE+1];
- while (SockGets(fileno(sockfp), buf, sizeof(buf)) >= 0)
+ while (SockGets(buf, sizeof(buf), sockfp) >= 0)
{
int num, size;