From bbaef66b3f99213f06adf04df6b3e5e61278d75b Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 27 Sep 2000 02:43:35 +0000 Subject: Consolidate handling of some fopen failures. --- console-tools/loadacm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'console-tools') diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c index 826c2a3..f577379 100644 --- a/console-tools/loadacm.c +++ b/console-tools/loadacm.c @@ -330,10 +330,7 @@ void saveoldmap(int fd, char *omfil) } #endif - if ((fp = fopen(omfil, "w")) == NULL) { - perror(omfil); - exit(1); - } + fp = xfopen(omfil, "w"); #ifdef GIO_UNISCRNMAP if (is_old_map) { #endif -- cgit v1.1