summaryrefslogtreecommitdiffstats
path: root/larn/config.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-10-18 20:03:05 +0000
committerchristos <christos@NetBSD.org>1997-10-18 20:03:05 +0000
commitf73f1009084e75624e3bc00fef9cf4749de80dcc (patch)
tree10cc39737f667f056c5537c3fba7cf4d2a832c9d /larn/config.c
parent39d5db4411fe42946cd3d94eb7d275f3f453d6aa (diff)
downloadbsdgames-darwin-f73f1009084e75624e3bc00fef9cf4749de80dcc.tar.gz
bsdgames-darwin-f73f1009084e75624e3bc00fef9cf4749de80dcc.tar.zst
bsdgames-darwin-f73f1009084e75624e3bc00fef9cf4749de80dcc.zip
Tons of changes; re-indent, use termios, fix warnings, add prototypes...
Games is almost clean; only hack is left...
Diffstat (limited to 'larn/config.c')
-rw-r--r--larn/config.c44
1 files changed, 23 insertions, 21 deletions
diff --git a/larn/config.c b/larn/config.c
index 3746c09c..30b64cfd 100644
--- a/larn/config.c
+++ b/larn/config.c
@@ -1,48 +1,50 @@
-#ifndef lint
-static char rcsid[] = "$NetBSD: config.c,v 1.4 1995/04/22 07:34:04 cgd Exp $";
-#endif /* not lint */
+/* $NetBSD: config.c,v 1.5 1997/10/18 20:03:08 christos Exp $ */
/*
- * config.c -- This defines the installation dependent variables.
- * Some strings are modified later. ANSI C would
- * allow compile time string concatenation, we must
- * do runtime concatenation, in main.
+ * config.c -- This defines the installation dependent variables.
+ * Some strings are modified later. ANSI C would
+ * allow compile time string concatenation, we must
+ * do runtime concatenation, in main.
*
* Larn is copyrighted 1986 by Noah Morgan.
*/
+#include <sys/cdefs.h>
+#ifndef lint
+__RCSID("$NetBSD: config.c,v 1.5 1997/10/18 20:03:08 christos Exp $");
+#endif /* not lint */
+
#include "header.h"
#include "pathnames.h"
/*
- * All these strings will be appended to in main() to be complete filenames
+ * All these strings will be appended to in main() to be complete filenames
*/
/* the game save filename */
-char savefilename[1024];
+char savefilename[1024];
/* the logging file */
-char logfile[] = _PATH_LOG;
+char logfile[] = _PATH_LOG;
/* the help text file */
-char helpfile[] = _PATH_HELP;
+char helpfile[] = _PATH_HELP;
/* the score file */
-char scorefile[] = _PATH_SCORE;
+char scorefile[] = _PATH_SCORE;
/* the maze data file */
-char larnlevels[] = _PATH_LEVELS;
+char larnlevels[] = _PATH_LEVELS;
/* the .larnopts filename */
-char optsfile[1024] ="/.larnopts";
+char optsfile[1024] = "/.larnopts";
/* the player id datafile name */
-char playerids[] = _PATH_PLAYERIDS;
+char playerids[] = _PATH_PLAYERIDS;
-char diagfile[] ="Diagfile"; /* the diagnostic filename */
-char ckpfile[] ="Larn12.0.ckp"; /* the checkpoint filename */
-char *password ="pvnert(x)"; /* the wizards password <=32 */
-char psname[PSNAMESIZE]="larn"; /* the process name */
+char diagfile[] = "Diagfile"; /* the diagnostic filename */
+char ckpfile[] = "Larn12.0.ckp"; /* the checkpoint filename */
+char *password = "pvnert(x)"; /* the wizards password <=32 */
+char psname[PSNAMESIZE] = "larn"; /* the process name */
#define WIZID 1
-int wisid=0; /* the user id of the only person who can be wizard */
-
+int wisid = 0; /* the user id of the only person who can be wizard */