aboutsummaryrefslogtreecommitdiffstats
path: root/pop2.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-06-19 01:51:38 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-06-19 01:51:38 +0000
commit8da5725d04fae61458a4944de12207256e8dbc2a (patch)
tree74e183d66ba39d46dd3bfd1ebab69552e077a027 /pop2.c
parent67d5e1e4ca79d86c8beedc8709efb27f83295443 (diff)
downloadfetchmail-8da5725d04fae61458a4944de12207256e8dbc2a.tar.gz
fetchmail-8da5725d04fae61458a4944de12207256e8dbc2a.tar.bz2
fetchmail-8da5725d04fae61458a4944de12207256e8dbc2a.zip
Fix various warnings.
svn path=/trunk/; revision=3904
Diffstat (limited to 'pop2.c')
-rw-r--r--pop2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pop2.c b/pop2.c
index b6af74bc..88ad4244 100644
--- a/pop2.c
+++ b/pop2.c
@@ -12,6 +12,9 @@
#if defined(STDC_HEADERS)
#include <stdlib.h>
#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
#include "fetchmail.h"
#include "socket.h"
@@ -61,6 +64,7 @@ static int pop2_getauth(int sock, struct query *ctl, char *buf)
"HELO %s %s",
ctl->remotename, ctl->password);
shroud[0] = '\0';
+ return status;
}
static int pop2_getrange(int sock, struct query *ctl, const char *folder,
@@ -125,7 +129,7 @@ static int pop2_logout(int sock, struct query *ctl)
return(gen_transact(sock, "QUIT"));
}
-const static struct method pop2 =
+static const struct method pop2 =
{
"POP2", /* Post Office Protocol v2 */
#if INET6_ENABLE