aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-26 22:21:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-26 22:21:16 +0000
commiteabdfb5e1ebf83147017c57db3659e7b2e8ecad1 (patch)
tree338308dc0519869dd03d3ae33071d3ef6fa8cd67 /pop3.c
parentd59e69783b91feb5d3ee5d2ba802c279ecf021c5 (diff)
downloadfetchmail-eabdfb5e1ebf83147017c57db3659e7b2e8ecad1.tar.gz
fetchmail-eabdfb5e1ebf83147017c57db3659e7b2e8ecad1.tar.bz2
fetchmail-eabdfb5e1ebf83147017c57db3659e7b2e8ecad1.zip
gcc -Wall cleanup.
svn path=/trunk/; revision=396
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/pop3.c b/pop3.c
index a52838af..30430afb 100644
--- a/pop3.c
+++ b/pop3.c
@@ -7,6 +7,13 @@
#include <config.h>
#include <stdio.h>
#include <string.h>
+#include <ctype.h>
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
+#if defined(STDC_HEADERS)
+#include <stdlib.h>
+#endif
#include "socket.h"
#include "fetchmail.h"
@@ -60,8 +67,6 @@ int socket;
struct query *ctl;
char *greeting;
{
- char buf [POPBUFSIZE+1];
-
/* build MD5 digest from greeting timestamp + password */
if (ctl->protocol == P_APOP)
{
@@ -117,7 +122,7 @@ char *greeting;
return(0);
}
-static pop3_getrange(socket, ctl, countp, newp)
+static int pop3_getrange(socket, ctl, countp, newp)
/* get range of messages to be fetched */
int socket;
struct query *ctl;
@@ -255,7 +260,7 @@ int *lenp;
return(0);
}
-static pop3_delete(socket, ctl, number)
+static int pop3_delete(socket, ctl, number)
/* delete a given message */
int socket;
struct query *ctl;