extract absolute pathnames
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 3 Jan 1990 06:09:07 +0000 (22:09 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 3 Jan 1990 06:09:07 +0000 (22:09 -0800)
SCCS-vsn: games/hangman/hangman.h 5.3
SCCS-vsn: games/hangman/setup.c 5.3

usr/src/games/hangman/hangman.h
usr/src/games/hangman/setup.c

index 3789f89..584f470 100644 (file)
@@ -14,7 +14,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  * 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      <curses.h>
  */
 
 # include      <curses.h>
 # include      <sys/stat.h>
 # include      <ctype.h>
 # include      <signal.h>
 # include      <sys/stat.h>
 # include      <ctype.h>
 # include      <signal.h>
+# include      "pathnames.h"
 
 # define       MINLEN  6
 # define       MAXERRS 7
 
 # define       MINLEN  6
 # define       MAXERRS 7
-# define       DICT    "/usr/dict/words"
 
 # define       MESGY   12
 # define       MESGX   0
 
 # define       MESGY   12
 # define       MESGX   0
index e47353c..6f1afd4 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
  */
 
 #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"
 #endif /* not lint */
 
 # include      "hangman.h"
@@ -46,8 +46,8 @@ setup()
        }
 
        srand(time(NULL) + getpid());
        }
 
        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);
        }
                endwin();
                exit(1);
        }