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/init.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/init.c')
-rw-r--r-- | battlestar/init.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/battlestar/init.c b/battlestar/init.c index a582545f..852b5b04 100644 --- a/battlestar/init.c +++ b/battlestar/init.c @@ -1,4 +1,4 @@ -/* $NetBSD: init.c,v 1.7 1997/10/11 02:07:25 lukem Exp $ */ +/* $NetBSD: init.c,v 1.8 1999/02/10 01:36:50 hubertf Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)init.c 8.4 (Berkeley) 4/30/95"; #else -__RCSID("$NetBSD: init.c,v 1.7 1997/10/11 02:07:25 lukem Exp $"); +__RCSID("$NetBSD: init.c,v 1.8 1999/02/10 01:36:50 hubertf Exp $"); #endif #endif /* not lint */ @@ -48,7 +48,7 @@ void initialize(startup) char startup; { - struct objs *p; + const struct objs *p; puts("Version 4.2, fall 1984."); puts("First Adventure game written by His Lordship, the honorable"); @@ -83,7 +83,7 @@ getutmp(uname) strcpy(uname, ptr ? ptr->pw_name : ""); } -char *list[] = { /* hereditary wizards */ +const char *const list[] = { /* hereditary wizards */ "riggle", "chris", "edward", @@ -94,7 +94,7 @@ char *list[] = { /* hereditary wizards */ 0 }; -char *badguys[] = { +const char *const badguys[] = { "wnj", "root", "ted", @@ -103,7 +103,7 @@ char *badguys[] = { int wizard(uname) - char *uname; + const char *uname; { int flag; @@ -114,9 +114,9 @@ wizard(uname) int checkout(uname) - char *uname; + const char *uname; { - char **ptr; + const char *const *ptr; for (ptr = list; *ptr; ptr++) if (strcmp(*ptr, uname) == 0) |