From 93ba6bf344389e00b3f8b5a0cb06226d32b8b275 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 15 Nov 2002 01:28:40 +0000 Subject: [PATCH] (output_skeleton): Call xfopen instead of duplicating xfopen's body. --- src/output.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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. */ -- 2.47.2