From aa6f43ee3b5f6ab6c5f2b4a94367da3c5870e1de Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Tue, 2 Jan 1990 22:09:07 -0800 Subject: [PATCH] extract absolute pathnames SCCS-vsn: games/hangman/hangman.h 5.3 SCCS-vsn: games/hangman/setup.c 5.3 --- usr/src/games/hangman/hangman.h | 4 ++-- usr/src/games/hangman/setup.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/src/games/hangman/hangman.h b/usr/src/games/hangman/hangman.h index 3789f891a7..584f470198 100644 --- a/usr/src/games/hangman/hangman.h +++ b/usr/src/games/hangman/hangman.h @@ -14,7 +14,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#)hangman.h 5.2 (Berkeley) %G% + * @(#)hangman.h 5.3 (Berkeley) %G% */ # include @@ -22,10 +22,10 @@ # include # include # include +# include "pathnames.h" # define MINLEN 6 # define MAXERRS 7 -# define DICT "/usr/dict/words" # define MESGY 12 # define MESGX 0 diff --git a/usr/src/games/hangman/setup.c b/usr/src/games/hangman/setup.c index e47353c5b8..6f1afd4bd3 100644 --- a/usr/src/games/hangman/setup.c +++ b/usr/src/games/hangman/setup.c @@ -16,7 +16,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)setup.c 5.2 (Berkeley) %G%"; +static char sccsid[] = "@(#)setup.c 5.3 (Berkeley) %G%"; #endif /* not lint */ # include "hangman.h" @@ -46,8 +46,8 @@ setup() } srand(time(NULL) + getpid()); - if ((Dict = fopen(DICT, "r")) == NULL) { - perror(DICT); + if ((Dict = fopen(_PATH_DICT, "r")) == NULL) { + perror(_PATH_DICT); endwin(); exit(1); } -- 2.20.1