diff options
author | hubertf <hubertf@NetBSD.org> | 1999-02-10 01:36:50 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 1999-02-10 01:36:50 +0000 |
commit | 100d94357a66a55e6b4fdc8a07350d7b62a945d6 (patch) | |
tree | 5cc11420edf6395ec5d7520b9eee92aa629ce353 /battlestar/globals.c | |
parent | 22a27dede77166c7bdf1de647d4d2b961fcd92c2 (diff) | |
download | bsdgames-darwin-100d94357a66a55e6b4fdc8a07350d7b62a945d6.tar.gz bsdgames-darwin-100d94357a66a55e6b4fdc8a07350d7b62a945d6.tar.zst bsdgames-darwin-100d94357a66a55e6b4fdc8a07350d7b62a945d6.zip |
Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'battlestar/globals.c')
-rw-r--r-- | battlestar/globals.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/battlestar/globals.c b/battlestar/globals.c index 1b3fc71c..5eebe951 100644 --- a/battlestar/globals.c +++ b/battlestar/globals.c @@ -1,4 +1,4 @@ -/* $NetBSD: globals.c,v 1.6 1997/10/11 02:07:23 lukem Exp $ */ +/* $NetBSD: globals.c,v 1.7 1999/02/10 01:36:50 hubertf Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)globals.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: globals.c,v 1.6 1997/10/11 02:07:23 lukem Exp $"); +__RCSID("$NetBSD: globals.c,v 1.7 1999/02/10 01:36:50 hubertf Exp $"); #endif #endif /* not lint */ @@ -47,7 +47,7 @@ __RCSID("$NetBSD: globals.c,v 1.6 1997/10/11 02:07:23 lukem Exp $"); int WEIGHT = MAXWEIGHT; int CUMBER = MAXCUMBER; -char *objdes[NUMOFOBJECTS] = { +const char *const objdes[NUMOFOBJECTS] = { "There is a knife here", "There is an exquisitely crafted sword and scabbard here.", 0, /* can land from here */ @@ -115,7 +115,7 @@ char *objdes[NUMOFOBJECTS] = { }; -char *objsht[NUMOFOBJECTS] = { +const char *const objsht[NUMOFOBJECTS] = { "knife", "fine sword", 0, @@ -182,7 +182,7 @@ char *objsht[NUMOFOBJECTS] = { "diamond block" }; -char *ouch[NUMOFINJURIES] = { +const char *const ouch[NUMOFINJURIES] = { "some minor abrasions", "some minor lacerations", "a minor puncture wound", @@ -198,7 +198,7 @@ char *ouch[NUMOFINJURIES] = { "a broken neck" }; -int objwt[NUMOFOBJECTS] = { +const int objwt[NUMOFOBJECTS] = { 1, 5, 0, 10, 15, 2, 10, 10, 3, 5, 50, 2500, 2, 1, 100, 1, 2, 1, 1, 1, 60, 10, 5, 0, @@ -209,7 +209,7 @@ int objwt[NUMOFOBJECTS] = { 50, 45, 45, 100, 2000, 30, 20, 10 }; -int objcumber[NUMOFOBJECTS] = { +const int objcumber[NUMOFOBJECTS] = { 1, 5, 0, 150, 10, 1, 5, 2, 2, 1, 5, 10, 1, 1, 10, 1, 1, 1, 1, 1, 7, 5, 4, 0, |