aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
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 /rcfile_y.y
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 'rcfile_y.y')
-rw-r--r--rcfile_y.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index ed9e9223..b9a97435 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -204,7 +204,7 @@ const char *pathname; /* pathname for the configuration file */
if (errno == ENOENT)
return(0);
else {
- perror(pathname);
+ error(0, errno, "lstat: %s", pathname);
return(PS_IOERR);
}
}
@@ -245,7 +245,7 @@ const char *pathname; /* pathname for the configuration file */
/* Open the configuration and feed it to the lexer. */
if ((yyin = fopen(pathname,"r")) == (FILE *)NULL) {
- perror(pathname);
+ error(0, errno, "open: %s", pathname);
return(PS_IOERR);
}