diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-04 16:22:43 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-04 16:22:43 +0000 |
commit | 3153b1bcc67a1d910a200170a3e669a377da95ee (patch) | |
tree | 9b4426f3a311e714222cc25fab02e45a6103933a /pop3.c | |
parent | 04fdca88243f7c19378104764157026d74ce8a6c (diff) | |
download | fetchmail-3153b1bcc67a1d910a200170a3e669a377da95ee.tar.gz fetchmail-3153b1bcc67a1d910a200170a3e669a377da95ee.tar.bz2 fetchmail-3153b1bcc67a1d910a200170a3e669a377da95ee.zip |
Special socket I/O almost gone!
svn path=/trunk/; revision=479
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |