aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-24 00:47:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-24 00:47:16 +0000
commit6ce82b6f3a2c73f72b5c27780b58ce7965458fa6 (patch)
treee23a7e1c41a32a8c512229eaaeb8ef5c55e269a9 /imap.c
parent5a1dd0c605715b4324fdd08b8e1989aed8a94eb8 (diff)
downloadfetchmail-6ce82b6f3a2c73f72b5c27780b58ce7965458fa6.tar.gz
fetchmail-6ce82b6f3a2c73f72b5c27780b58ce7965458fa6.tar.bz2
fetchmail-6ce82b6f3a2c73f72b5c27780b58ce7965458fa6.zip
Avoid random return value.
svn path=/trunk/; revision=819
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/imap.c b/imap.c
index 720fd7d5..4e5122fa 100644
--- a/imap.c
+++ b/imap.c
@@ -52,7 +52,7 @@ int imap_ok (FILE *sockfp, char *argbuf)
if (tag[0] == '\0')
{
strcpy(argbuf, buf);
- return(0);
+ return(PS_SUCCESS);
}
else
{
@@ -67,7 +67,7 @@ int imap_ok (FILE *sockfp, char *argbuf)
if (strncmp(cp, "OK", 2) == 0)
{
strcpy(argbuf, cp);
- return(0);
+ return(PS_SUCCESS);
}
else if (strncmp(cp, "BAD", 2) == 0)
return(PS_ERROR);
@@ -113,6 +113,8 @@ int imap_getauth(FILE *sockfp, struct query *ctl, char *buf)
}
peek_capable = (imap_version >= IMAP4);
+
+ return(PS_SUCCESS);
}
static int imap_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp)
@@ -139,7 +141,7 @@ static int imap_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp)
deletecount = 0;
- return(0);
+ return(PS_SUCCESS);
}
static int imap_getsizes(FILE *sockfp, int count, int *sizes)
@@ -162,7 +164,7 @@ static int imap_getsizes(FILE *sockfp, int count, int *sizes)
sizes[num - 1] = -1;
}
- return(0);
+ return(PS_SUCCESS);
}
static int imap_is_old(FILE *sockfp, struct query *ctl, int number)
@@ -232,7 +234,7 @@ static int imap_fetch(FILE *sockfp, struct query *ctl, int number, int *lenp)
if (num != number)
return(PS_ERROR);
else
- return(0);
+ return(PS_SUCCESS);
}
static int imap_trail(FILE *sockfp, struct query *ctl, int number)
@@ -272,7 +274,7 @@ static int imap_delete(FILE *sockfp, struct query *ctl, int number)
deletecount++;
- return(0);
+ return(PS_SUCCESS);
}
const static struct method imap =