diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-12-17 02:09:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-12-17 02:09:51 +0000 |
commit | 0922eb1ccb33983bd4ad2d5c38475d56e2e60137 (patch) | |
tree | 5d4e126da335d88279e0447feb988a5816f29a63 /pop3.c | |
parent | d4009e757f45a4f09bd415cc032b079f316b4c46 (diff) | |
download | fetchmail-0922eb1ccb33983bd4ad2d5c38475d56e2e60137.tar.gz fetchmail-0922eb1ccb33983bd4ad2d5c38475d56e2e60137.tar.bz2 fetchmail-0922eb1ccb33983bd4ad2d5c38475d56e2e60137.zip |
Use error() for messages almost everywhere.
svn path=/trunk/; revision=636
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -19,7 +19,7 @@ #include "socket.h" #include "fetchmail.h" -#define PROTOCOL_ERROR {fputs("fetchmail: protocol error\n", stderr); return(PS_ERROR);} +#define PROTOCOL_ERROR {error(0, 0, "protocol error"); return(PS_ERROR);} static int last; @@ -73,7 +73,7 @@ int pop3_getauth(FILE *sockfp, struct query *ctl, char *greeting) for (start = greeting; *start != 0 && *start != '<'; start++) continue; if (*start == 0) { - fprintf(stderr,"Required APOP timestamp not found in greeting\n"); + error(0, 0, "Required APOP timestamp not found in greeting"); return(PS_AUTHFAIL); } @@ -81,7 +81,7 @@ int pop3_getauth(FILE *sockfp, struct query *ctl, char *greeting) for (end = start; *end != 0 && *end != '>'; end++) continue; if (*end == 0 || end == start + 1) { - fprintf(stderr,"Timestamp syntax error in greeting\n"); + error(0, 0, "Timestamp syntax error in greeting"); return(PS_AUTHFAIL); } else @@ -112,7 +112,7 @@ int pop3_getauth(FILE *sockfp, struct query *ctl, char *greeting) break; default: - fprintf(stderr,"Undefined protocol request in POP3_auth\n"); + error(0, 0, "Undefined protocol request in POP3_auth"); } /* we're approved */ |