Module Name:    src
Committed By:   dholland
Date:           Sun Jun  7 21:04:54 UTC 2009

Modified Files:
        src/games/hack: hack.Decl.c hack.h

Log Message:
a bit more const


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/games/hack/hack.Decl.c
cvs rdiff -u -r1.11 -r1.12 src/games/hack/hack.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/hack/hack.Decl.c
diff -u src/games/hack/hack.Decl.c:1.7 src/games/hack/hack.Decl.c:1.8
--- src/games/hack/hack.Decl.c:1.7	Sun Jun  7 20:31:10 2009
+++ src/games/hack/hack.Decl.c	Sun Jun  7 21:04:54 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $	*/
+/*	$NetBSD: hack.Decl.c,v 1.8 2009/06/07 21:04:54 dholland Exp $	*/
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $");
+__RCSID("$NetBSD: hack.Decl.c,v 1.8 2009/06/07 21:04:54 dholland Exp $");
 #endif				/* not lint */
 
 #include	"hack.h"
@@ -92,7 +92,7 @@
 
 xchar           dlevel = 1;
 xchar           xupstair, yupstair, xdnstair, ydnstair;
-char           *save_cm = 0;
+const char *save_cm = NULL;
 const char *killer, *nomovemsg;
 
 long            moves = 1;

Index: src/games/hack/hack.h
diff -u src/games/hack/hack.h:1.11 src/games/hack/hack.h:1.12
--- src/games/hack/hack.h:1.11	Sun Jun  7 20:31:10 2009
+++ src/games/hack/hack.h	Sun Jun  7 21:04:54 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: hack.h,v 1.11 2009/06/07 20:31:10 dholland Exp $	*/
+/*	$NetBSD: hack.h,v 1.12 2009/06/07 21:04:54 dholland Exp $	*/
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -196,7 +196,7 @@
 extern const char *const hu_stat[]; /* in eat.c */
 extern const char *nomovemsg;
 extern const char *occtxt;
-extern char *save_cm;
+extern const char *save_cm;
 extern const char *killer;
 extern const char *const traps[];
 extern char SAVEF[];

Reply via email to