diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-01-24 00:47:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-01-24 00:47:16 +0000 |
commit | 6ce82b6f3a2c73f72b5c27780b58ce7965458fa6 (patch) | |
tree | e23a7e1c41a32a8c512229eaaeb8ef5c55e269a9 /imap.c | |
parent | 5a1dd0c605715b4324fdd08b8e1989aed8a94eb8 (diff) | |
download | fetchmail-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.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 = |