From 3153b1bcc67a1d910a200170a3e669a377da95ee Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 4 Nov 1996 16:22:43 +0000 Subject: Special socket I/O almost gone! svn path=/trunk/; revision=479 --- pop3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index 4df8473a..4f8f35f7 100644 --- a/pop3.c +++ b/pop3.c @@ -31,9 +31,9 @@ char *argbuf; char buf [POPBUFSIZE+1]; char *bufp; - if (SockGets(buf, sizeof(buf), sockfp) >= 0) { + if (fgets(buf, sizeof(buf), sockfp) != (char *)NULL) { if (outlevel == O_VERBOSE) - fprintf(stderr,"%s\n",buf); + fprintf(stderr,"%s",buf); bufp = buf; if (*bufp == '+' || *bufp == '-') @@ -171,7 +171,7 @@ int *countp, *newp; int num; *newp = 0; - while (SockGets(buf, sizeof(buf), sockfp) >= 0) + while (fgets(buf, sizeof(buf), sockfp) != (char *)NULL) { if (outlevel == O_VERBOSE) fprintf(stderr,"%s\n",buf); @@ -205,7 +205,7 @@ int *sizes; { char buf [POPBUFSIZE+1]; - while (SockGets(buf, sizeof(buf), sockfp) >= 0) + while (fgets(buf, sizeof(buf), sockfp) != (char *)NULL) { int num, size; -- cgit v1.2.3