Module Name: src Committed By: dholland Date: Sun Jun 7 20:31:10 UTC 2009
Modified Files: src/games/hack: hack.Decl.c hack.fight.c hack.h Log Message: sprinkle some more const To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/games/hack/hack.Decl.c cvs rdiff -u -r1.10 -r1.11 src/games/hack/hack.fight.c 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.6 src/games/hack/hack.Decl.c:1.7 --- src/games/hack/hack.Decl.c:1.6 Wed Apr 2 18:36:35 2003 +++ src/games/hack/hack.Decl.c Sun Jun 7 20:31:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: hack.Decl.c,v 1.6 2003/04/02 18:36:35 jsm Exp $ */ +/* $NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,11 +63,11 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.Decl.c,v 1.6 2003/04/02 18:36:35 jsm Exp $"); +__RCSID("$NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $"); #endif /* not lint */ #include "hack.h" -char nul[40]; /* contains zeros */ +const char nul[40]; /* contains zeros */ char plname[PL_NSIZ];/* player name */ char lock[PL_NSIZ + 4] = "1lock"; /* long enough for login name * .99 */ Index: src/games/hack/hack.fight.c diff -u src/games/hack/hack.fight.c:1.10 src/games/hack/hack.fight.c:1.11 --- src/games/hack/hack.fight.c:1.10 Sun Jun 7 20:13:18 2009 +++ src/games/hack/hack.fight.c Sun Jun 7 20:31:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: hack.fight.c,v 1.10 2009/06/07 20:13:18 dholland Exp $ */ +/* $NetBSD: hack.fight.c,v 1.11 2009/06/07 20:31:10 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.fight.c,v 1.10 2009/06/07 20:13:18 dholland Exp $"); +__RCSID("$NetBSD: hack.fight.c,v 1.11 2009/06/07 20:31:10 dholland Exp $"); #endif /* not lint */ #include "hack.h" @@ -209,7 +209,7 @@ } } -char mlarge[] = "bCDdegIlmnoPSsTUwY',&"; +const char mlarge[] = "bCDdegIlmnoPSsTUwY',&"; /* return TRUE if mon still alive */ boolean Index: src/games/hack/hack.h diff -u src/games/hack/hack.h:1.10 src/games/hack/hack.h:1.11 --- src/games/hack/hack.h:1.10 Tue Jan 27 20:30:29 2004 +++ src/games/hack/hack.h Sun Jun 7 20:31:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: hack.h,v 1.10 2004/01/27 20:30:29 jsm Exp $ */ +/* $NetBSD: hack.h,v 1.11 2009/06/07 20:31:10 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -203,9 +203,9 @@ extern char fut_geno[60]; /* idem */ extern char genocided[60]; /* defined in Decl.c */ extern char lock[]; -extern char mlarge[]; +extern const char mlarge[]; extern char morc; -extern char nul[]; +extern const char nul[]; extern char plname[PL_NSIZ], pl_character[PL_CSIZ]; extern const char quitchars[]; extern char sdir[]; /* defined in hack.c */