summaryrefslogtreecommitdiffstats
path: root/hangman
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-11 08:01:06 +0000
committerlukem <lukem@NetBSD.org>1997-10-11 08:01:06 +0000
commit553d721d7a1deaf8fc7b01155b66150ce13f2783 (patch)
treea43fdea21021157a1737463fa3ddbde97613ccfe /hangman
parent7814ee6b1382f58edddec6b1561ab4b76ae8afdf (diff)
downloadbsdgames-darwin-553d721d7a1deaf8fc7b01155b66150ce13f2783.tar.gz
bsdgames-darwin-553d721d7a1deaf8fc7b01155b66150ce13f2783.tar.zst
bsdgames-darwin-553d721d7a1deaf8fc7b01155b66150ce13f2783.zip
use err/warn instead of perror
Diffstat (limited to 'hangman')
-rw-r--r--hangman/setup.c8
1 files changed, 4 insertions, 4 deletions
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 <err.h>
#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;