aboutsummaryrefslogtreecommitdiffstats
path: root/etrn.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-15 16:09:24 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-15 16:09:24 +0000
commit3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272 (patch)
tree8b0bf1472eb20208cd2295619f14d70941fffe57 /etrn.c
parent60389620d98dd09d4722f078b3523c6a0425f173 (diff)
downloadfetchmail-3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272.tar.gz
fetchmail-3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272.tar.bz2
fetchmail-3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272.zip
-Wall cleanup.
svn path=/trunk/; revision=1011
Diffstat (limited to 'etrn.c')
-rw-r--r--etrn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/etrn.c b/etrn.c
index b8e8fffa..c931d2cc 100644
--- a/etrn.c
+++ b/etrn.c
@@ -6,6 +6,7 @@
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
#include "fetchmail.h"
#include "smtp.h"
#include "socket.h"
@@ -14,7 +15,6 @@ static int etrn_ok (int sock, char *argbuf)
/* parse command response */
{
int ok;
- char buf [POPBUFSIZE+1];
ok = SMTP_ok(sock);
if (ok == SM_UNRECOVERABLE)
@@ -46,7 +46,7 @@ static int etrn_getrange(int sock, struct query *ctl, int*countp, int*newp)
/* ship the actual poll and get the response */
gen_send(sock, "ETRN %s", ctl->smtphost);
- if (ok = gen_recv(sock, buf, sizeof(buf)))
+ if ((ok = gen_recv(sock, buf, sizeof(buf))))
return(ok);
/* this switch includes all the response codes described in RFC1985 */