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 /rcfile_y.y | |
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 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |