diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-05-15 16:09:24 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-05-15 16:09:24 +0000 |
commit | 3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272 (patch) | |
tree | 8b0bf1472eb20208cd2295619f14d70941fffe57 /imap.c | |
parent | 60389620d98dd09d4722f078b3523c6a0425f173 (diff) | |
download | fetchmail-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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[]" */ |