diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-26 22:21:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-26 22:21:16 +0000 |
commit | eabdfb5e1ebf83147017c57db3659e7b2e8ecad1 (patch) | |
tree | 338308dc0519869dd03d3ae33071d3ef6fa8cd67 /imap.c | |
parent | d59e69783b91feb5d3ee5d2ba802c279ecf021c5 (diff) | |
download | fetchmail-eabdfb5e1ebf83147017c57db3659e7b2e8ecad1.tar.gz fetchmail-eabdfb5e1ebf83147017c57db3659e7b2e8ecad1.tar.bz2 fetchmail-eabdfb5e1ebf83147017c57db3659e7b2e8ecad1.zip |
gcc -Wall cleanup.
svn path=/trunk/; revision=396
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -9,6 +9,10 @@ #include <config.h> #include <stdio.h> #include <string.h> +#include <ctype.h> +#if defined(STDC_HEADERS) +#include <stdlib.h> +#endif #include "socket.h" #include "fetchmail.h" @@ -19,10 +23,7 @@ int imap_ok (socket, argbuf) char *argbuf; int socket; { - int ok; char buf [POPBUFSIZE+1]; - char *bufp; - int n; seen = 0; do { @@ -83,7 +84,7 @@ char *buf; ctl->remotename, ctl->password)); } -static imap_getrange(socket, ctl, countp, newp) +static int imap_getrange(socket, ctl, countp, newp) /* get range of messages to be fetched */ int socket; struct query *ctl; @@ -137,13 +138,12 @@ int *sizes; return(0); } -static imap_is_old(socket, ctl, num) +static int imap_is_old(socket, ctl, num) /* is the given message old? */ int socket; struct query *ctl; int num; { - char buf [POPBUFSIZE+1]; int ok; if ((ok = gen_transact(socket, "FETCH %d FLAGS", num)) != 0) @@ -176,7 +176,7 @@ int *lenp; return(0); } -static imap_trail(socket, ctl, number) +static int imap_trail(socket, ctl, number) /* discard tail of FETCH response after reading message text */ int socket; struct query *ctl; @@ -190,7 +190,7 @@ int number; return(0); } -static imap_delete(socket, ctl, number) +static int imap_delete(socket, ctl, number) /* set delete flag for given message */ int socket; struct query *ctl; |