From d77852561a7e6abb3d813779b2d313cdea170896 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 24 Jan 1997 00:10:03 +0000 Subject: Better error tracking. svn path=/trunk/; revision=815 --- pop3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index 07fc22de..17a6306a 100644 --- a/pop3.c +++ b/pop3.c @@ -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); } } -- cgit v1.2.3