summaryrefslogtreecommitdiff
path: root/src/pop3.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2003-12-08 02:20:14 +0000
committerIan C <ianc@noddybox.co.uk>2003-12-08 02:20:14 +0000
commit1c161a8cbe16aa59cc8bf4d60d5fa64fdcbc6aa5 (patch)
tree355d3a053199f03f5e13d8fa25b05723bf1da720 /src/pop3.c
parent787bb7625c9abc6b09efbc6bbe004a19d4b96166 (diff)
Added subject_macro; Tweaked check order; Fixed some warnings
Diffstat (limited to 'src/pop3.c')
-rw-r--r--src/pop3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pop3.c b/src/pop3.c
index 660283e..d9fab19 100644
--- a/src/pop3.c
+++ b/src/pop3.c
@@ -31,6 +31,7 @@ static const char id[]="$Id$";
#include <stdarg.h>
#include <ctype.h>
+#include <unistd.h>
#include <sys/types.h>
#include <sys/select.h>
#include <sys/socket.h>
@@ -183,7 +184,6 @@ static int GetChar(void)
static char buff[BLOCKSIZE];
static ssize_t len=0;
static int ptr=0;
- int ch;
if (len==0 || ptr==len)
{
@@ -214,10 +214,9 @@ static int GetChar(void)
static int GetLine(DString t)
{
- size_t size;
int done;
- int ch;
int last;
+ int ch;
done=FALSE;