diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-01-24 00:10:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-01-24 00:10:03 +0000 |
commit | d77852561a7e6abb3d813779b2d313cdea170896 (patch) | |
tree | 980de4fe8d0cd3ff8645f28af85f8ebc236dc7ed /pop3.c | |
parent | d92b8233c987c8f48c56500bc4d7bd84c82ded63 (diff) | |
download | fetchmail-d77852561a7e6abb3d813779b2d313cdea170896.tar.gz fetchmail-d77852561a7e6abb3d813779b2d313cdea170896.tar.bz2 fetchmail-d77852561a7e6abb3d813779b2d313cdea170896.zip |
Better error tracking.
svn path=/trunk/; revision=815
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -171,7 +171,7 @@ static int pop3_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp) int num; *newp = 0; - while (!gen_recv(sockfp, buf, sizeof(buf))) + while ((ok = gen_recv(sockfp, buf, sizeof(buf))) == 0) { if (buf[0] == '.') break; @@ -202,7 +202,7 @@ static int pop3_getsizes(FILE *sockfp, int count, int *sizes) { char buf [POPBUFSIZE+1]; - while (!gen_recv(sockfp, buf, sizeof(buf))) + while ((ok = gen_recv(sockfp, buf, sizeof(buf))) == 0) { int num, size; @@ -214,7 +214,7 @@ static int pop3_getsizes(FILE *sockfp, int count, int *sizes) sizes[num - 1] = -1; } - return(0); + return(ok); } } |