aboutsummaryrefslogtreecommitdiffstats
path: root/imap.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 /imap.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 'imap.c')
-rw-r--r--imap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/imap.c b/imap.c
index 1c64bdc6..b0e39936 100644
--- a/imap.c
+++ b/imap.c
@@ -27,7 +27,7 @@ FILE *sockfp;
seen = 0;
do {
- if (SockGets(fileno(sockfp), buf, sizeof(buf)) < 0)
+ if (SockGets(buf, sizeof(buf), sockfp) < 0)
return(PS_SOCKET);
if (outlevel == O_VERBOSE)
@@ -121,7 +121,7 @@ int *sizes;
char buf [POPBUFSIZE+1];
gen_send(sockfp, "FETCH 1:%d RFC822.SIZE", count);
- while (SockGets(fileno(sockfp), buf, sizeof(buf)) >= 0)
+ while (SockGets(buf, sizeof(buf), sockfp) >= 0)
{
int num, size;
@@ -165,7 +165,7 @@ int *lenp;
/* looking for FETCH response */
do {
- if (SockGets(fileno(sockfp), buf,sizeof(buf)) < 0)
+ if (SockGets(buf, sizeof(buf), sockfp) < 0)
return(PS_SOCKET);
} while
(sscanf(buf+2, "%d FETCH (RFC822 {%d}", &num, lenp) != 2);
@@ -184,7 +184,7 @@ int number;
{
char buf [POPBUFSIZE+1];
- if (SockGets(fileno(sockfp), buf,sizeof(buf)) < 0)
+ if (SockGets(buf, sizeof(buf), sockfp) < 0)
return(PS_SOCKET);
else
return(0);