]> git.saurik.com Git - bison.git/commitdiff
(output_skeleton): Call xfopen instead of duplicating xfopen's body.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Nov 2002 01:28:40 +0000 (01:28 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Nov 2002 01:28:40 +0000 (01:28 +0000)
src/output.c

index 502e30b683b1b0c5f1bd9f36de2038d0a31a1490..789b2f03a310c5faa67fc96e3ff26f353816595e 100644 (file)
@@ -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.  */