From: Paul Eggert Date: Fri, 15 Nov 2002 01:28:40 +0000 (+0000) Subject: (output_skeleton): Call xfopen instead of duplicating xfopen's body. X-Git-Tag: BISON-1_875~253 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/93ba6bf344389e00b3f8b5a0cb06226d32b8b275 (output_skeleton): Call xfopen instead of duplicating xfopen's body. --- diff --git a/src/output.c b/src/output.c index 502e30b6..789b2f03 100644 --- a/src/output.c +++ b/src/output.c @@ -526,10 +526,7 @@ output_skeleton (void) strcpy (full_path, pkgdatadir); full_path[pkgdatadirlen] = '/'; strcpy (full_path + pkgdatadirlen + 1, m4sugar); - in = fopen (full_path, "r"); - if (! in) - error (EXIT_FAILURE, errno, "%s", full_path); - xfclose (in); + xfclose (xfopen (full_path, "r")); strcpy (full_path + pkgdatadirlen + 1, skeleton); /* Create an m4 subprocess connected to us via two pipes. */