X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b906441c9568615be3ddce717a6e365b2e368af3..901ec1537a0ceb980398a5395751ea0e445c4ce5:/src/files.c?ds=sidebyside diff --git a/src/files.c b/src/files.c index c4c223d3..92573585 100644 --- a/src/files.c +++ b/src/files.c @@ -28,7 +28,7 @@ #include "complain.h" /* From basename.c. Almost a lie, as it returns a char *. */ -const char *base_name PARAMS ((char const *name)); +const char *base_name (char const *name); FILE *finput = NULL; @@ -111,7 +111,7 @@ xfopen (const char *name, const char *mode) ptr = fopen (name, mode); if (!ptr) - error (2, errno, _("cannot open file `%s'"), name); + error (EXIT_FAILURE, errno, _("cannot open file `%s'"), name); return ptr; } @@ -130,7 +130,7 @@ xfclose (FILE *ptr) result = fclose (ptr); if (result == EOF) - error (2, errno, _("cannot close file")); + error (EXIT_FAILURE, errno, _("cannot close file")); return result; }