From e6e5c6c4ddffa8199225c76cd46e34ab58aec2ca Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 6 Jan 1999 02:44:58 +0000 Subject: More error message cleanup. svn path=/trunk/; revision=2333 --- 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 54f1b534..05084635 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -374,7 +374,7 @@ int prc_filecheck(const char *pathname, const flag securecheck) if (errno == ENOENT) return(PS_SUCCESS); else { - error(0, errno, "lstat: %s", pathname); + report(stderr, errno, "lstat: %s", pathname); return(PS_IOERR); } } @@ -422,7 +422,7 @@ int prc_parse_file (const char *pathname, const flag securecheck) if (strcmp(pathname, "-") == 0) yyin = stdin; else if ((yyin = fopen(pathname,"r")) == (FILE *)NULL) { - error(0, errno, "open: %s", pathname); + report(stderr, errno, "open: %s", pathname); return(PS_IOERR); } -- cgit v1.2.3