From 553d721d7a1deaf8fc7b01155b66150ce13f2783 Mon Sep 17 00:00:00 2001 From: lukem Date: Sat, 11 Oct 1997 08:01:06 +0000 Subject: use err/warn instead of perror --- hangman/setup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hangman') diff --git a/hangman/setup.c b/hangman/setup.c index 0ddb2602..a0f003b2 100644 --- a/hangman/setup.c +++ b/hangman/setup.c @@ -1,4 +1,4 @@ -/* $NetBSD: setup.c,v 1.4 1997/10/11 01:16:42 lukem Exp $ */ +/* $NetBSD: setup.c,v 1.5 1997/10/11 08:01:06 lukem Exp $ */ /*- * Copyright (c) 1983, 1993 @@ -38,10 +38,11 @@ #if 0 static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: setup.c,v 1.4 1997/10/11 01:16:42 lukem Exp $"); +__RCSID("$NetBSD: setup.c,v 1.5 1997/10/11 08:01:06 lukem Exp $"); #endif #endif /* not lint */ +#include #include "hangman.h" /* @@ -71,9 +72,8 @@ setup() srand(time(NULL) + getpid()); if ((Dict = fopen(_PATH_DICT, "r")) == NULL) { - perror(_PATH_DICT); endwin(); - exit(1); + err(1, "fopen %s", _PATH_DICT); } fstat(fileno(Dict), &sbuf); Dict_size = sbuf.st_size; -- cgit v1.2.3-56-ge451