aboutsummaryrefslogtreecommitdiffstats
path: root/pop2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-04 16:22:43 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-04 16:22:43 +0000
commit3153b1bcc67a1d910a200170a3e669a377da95ee (patch)
tree9b4426f3a311e714222cc25fab02e45a6103933a /pop2.c
parent04fdca88243f7c19378104764157026d74ce8a6c (diff)
downloadfetchmail-3153b1bcc67a1d910a200170a3e669a377da95ee.tar.gz
fetchmail-3153b1bcc67a1d910a200170a3e669a377da95ee.tar.bz2
fetchmail-3153b1bcc67a1d910a200170a3e669a377da95ee.zip
Special socket I/O almost gone!
svn path=/trunk/; revision=479
Diffstat (limited to 'pop2.c')
-rw-r--r--pop2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop2.c b/pop2.c
index a501c624..075ef22e 100644
--- a/pop2.c
+++ b/pop2.c
@@ -25,9 +25,9 @@ char *argbuf;
char buf [POPBUFSIZE+1];
pound_arg = equal_arg = -1;
- 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);
if (buf[0] == '+')
ok = 0;