From 6ce82b6f3a2c73f72b5c27780b58ce7965458fa6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 24 Jan 1997 00:47:16 +0000 Subject: Avoid random return value. svn path=/trunk/; revision=819 --- imap.c | 14 ++++++++------ 1 file 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 = -- cgit v1.2.3