From 0922eb1ccb33983bd4ad2d5c38475d56e2e60137 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 17 Dec 1996 02:09:51 +0000 Subject: Use error() for messages almost everywhere. svn path=/trunk/; revision=636 --- rcfile_y.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rcfile_y.y') 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); } -- cgit v1.2.3