aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-17 02:09:51 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-17 02:09:51 +0000
commit0922eb1ccb33983bd4ad2d5c38475d56e2e60137 (patch)
tree5d4e126da335d88279e0447feb988a5816f29a63 /pop3.c
parentd4009e757f45a4f09bd415cc032b079f316b4c46 (diff)
downloadfetchmail-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pop3.c b/pop3.c
index 1e429d30..5eb1741d 100644
--- a/pop3.c
+++ b/pop3.c
@@ -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 */