aboutsummaryrefslogtreecommitdiffstats
path: root/imap.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 /imap.c
parent60389620d98dd09d4722f078b3523c6a0425f173 (diff)
downloadfetchmail-3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272.tar.gz
fetchmail-3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272.tar.bz2
fetchmail-3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272.zip
-Wall cleanup.
svn path=/trunk/; revision=1011
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/imap.c b/imap.c
index 8331bc53..938c5f0a 100644
--- a/imap.c
+++ b/imap.c
@@ -34,7 +34,7 @@ int imap_ok (int sock, char *argbuf)
do {
int ok;
- if (ok = gen_recv(sock, buf, sizeof(buf)))
+ if ((ok = gen_recv(sock, buf, sizeof(buf))))
return(ok);
/* interpret untagged status responses */
@@ -91,7 +91,7 @@ int imap_getauth(int sock, struct query *ctl, char *buf)
/* probe to see if we're running IMAP4 and can use RFC822.PEEK */
gen_send(sock, "CAPABILITY");
- if (ok = gen_recv(sock, rbuf, sizeof(rbuf)))
+ if ((ok = gen_recv(sock, rbuf, sizeof(rbuf))))
return(ok);
if (strstr(rbuf, "BAD"))
{
@@ -157,7 +157,7 @@ static int imap_getsizes(int sock, int count, int *sizes)
{
int num, size, ok;
- if (ok = gen_recv(sock, buf, sizeof(buf)))
+ if ((ok = gen_recv(sock, buf, sizeof(buf))))
return(ok);
if (strstr(buf, "OK"))
break;
@@ -187,7 +187,7 @@ static int imap_is_old(int sock, struct query *ctl, int number)
static int imap_fetch(int sock, struct query *ctl, int number, int *lenp)
/* request nth message */
{
- char buf [POPBUFSIZE+1], *fetch;
+ char buf [POPBUFSIZE+1];
int num;
/* expunges change the fetch numbers */
@@ -228,7 +228,7 @@ static int imap_fetch(int sock, struct query *ctl, int number, int *lenp)
do {
int ok;
- if (ok = gen_recv(sock, buf, sizeof(buf)))
+ if ((ok = gen_recv(sock, buf, sizeof(buf))))
return(ok);
} while
/* third token can be "RFC822" or "BODY[]" */