diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-12-17 20:53:10 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-12-17 20:53:10 +0000 |
commit | b85d71b67a2743272f46c85bf479b1051171193d (patch) | |
tree | f828606268e283fa4d36ec6fb91ffc5fb19d9402 /imap.c | |
parent | f034d4af6612be9fc2b393855ec5ac95d548d5d8 (diff) | |
download | fetchmail-b85d71b67a2743272f46c85bf479b1051171193d.tar.gz fetchmail-b85d71b67a2743272f46c85bf479b1051171193d.tar.bz2 fetchmail-b85d71b67a2743272f46c85bf479b1051171193d.zip |
SockGets is gone.
svn path=/trunk/; revision=650
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,7 +25,7 @@ int imap_ok (FILE *sockfp, char *argbuf) seen = 0; do { - if (SockGets(buf, sizeof(buf), sockfp) < 0) + if (!fgets(buf, sizeof(buf), sockfp)) return(PS_SOCKET); if (outlevel == O_VERBOSE) @@ -118,7 +118,7 @@ static int imap_getsizes(FILE *sockfp, int count, int *sizes) char buf [POPBUFSIZE+1]; gen_send(sockfp, "FETCH 1:%d RFC822.SIZE", count); - while (SockGets(buf, sizeof(buf), sockfp) >= 0) + while (fgets(buf, sizeof(buf), sockfp)) { int num, size; @@ -165,7 +165,7 @@ static int imap_fetch(FILE *sockfp, int number, int *lenp) /* looking for FETCH response */ do { - if (SockGets(buf, sizeof(buf), sockfp) < 0) + if (!fgets(buf, sizeof(buf), sockfp)) return(PS_SOCKET); } while (sscanf(buf+2, "%d FETCH (RFC822 {%d}", &num, lenp) != 2); @@ -181,7 +181,7 @@ static int imap_trail(FILE *sockfp, struct query *ctl, int number) { char buf [POPBUFSIZE+1]; - if (SockGets(buf, sizeof(buf), sockfp) < 0) + if (!fgets(buf, sizeof(buf), sockfp)) return(PS_SOCKET); else return(0); |