diff options
author | mycroft <mycroft@NetBSD.org> | 1998-07-27 01:12:35 +0000 |
---|---|---|
committer | mycroft <mycroft@NetBSD.org> | 1998-07-27 01:12:35 +0000 |
commit | c57fa9b1accc28bd366bc1236a0a39ec8aea5130 (patch) | |
tree | 9c8b229ce0453984e5eff5ff38adbb5599ab45b1 | |
parent | 11961241abd27c9cf1344a211e8331ffd25259b9 (diff) | |
download | bsdgames-darwin-c57fa9b1accc28bd366bc1236a0a39ec8aea5130.tar.gz bsdgames-darwin-c57fa9b1accc28bd366bc1236a0a39ec8aea5130.tar.zst bsdgames-darwin-c57fa9b1accc28bd366bc1236a0a39ec8aea5130.zip |
const poisoning.
-rw-r--r-- | larn/main.c | 6 | ||||
-rw-r--r-- | phantasia/phantglobs.c | 4 | ||||
-rw-r--r-- | phantasia/phantglobs.h | 4 | ||||
-rw-r--r-- | rogue/init.c | 6 | ||||
-rw-r--r-- | rogue/machdep.c | 6 | ||||
-rw-r--r-- | rogue/rogue.h | 5 | ||||
-rw-r--r-- | snake/snscore/snscore.c | 6 |
7 files changed, 19 insertions, 18 deletions
diff --git a/larn/main.c b/larn/main.c index 54d0e20e..d386ed36 100644 --- a/larn/main.c +++ b/larn/main.c @@ -1,9 +1,9 @@ -/* $NetBSD: main.c,v 1.12 1998/02/12 08:07:49 mikel Exp $ */ +/* $NetBSD: main.c,v 1.13 1998/07/27 01:12:35 mycroft Exp $ */ /* main.c */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: main.c,v 1.12 1998/02/12 08:07:49 mikel Exp $"); +__RCSID("$NetBSD: main.c,v 1.13 1998/07/27 01:12:35 mycroft Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -59,7 +59,7 @@ main(argc, argv) { int i; int hard; - char *ptr = 0; + const char *ptr = 0; struct passwd *pwe; euid = geteuid(); diff --git a/phantasia/phantglobs.c b/phantasia/phantglobs.c index 88ce347c..399de146 100644 --- a/phantasia/phantglobs.c +++ b/phantasia/phantglobs.c @@ -1,4 +1,4 @@ -/* $NetBSD: phantglobs.c,v 1.3 1997/10/13 02:18:32 lukem Exp $ */ +/* $NetBSD: phantglobs.c,v 1.4 1998/07/27 01:12:35 mycroft Exp $ */ /* * phantglobs.c - globals for Phantasia @@ -29,7 +29,7 @@ jmp_buf Timeoenv; /* used for timing out waiting for input */ long Fileloc; /* location in file of player statistics */ -char *Login; /* pointer to login of player */ +const char *Login; /* pointer to login of player */ char *Enemyname; /* pointer name of monster/player we are battling*/ struct player Player; /* stats for player */ diff --git a/phantasia/phantglobs.h b/phantasia/phantglobs.h index 1862b445..00077e55 100644 --- a/phantasia/phantglobs.h +++ b/phantasia/phantglobs.h @@ -1,4 +1,4 @@ -/* $NetBSD: phantglobs.h,v 1.4 1997/10/13 02:18:35 lukem Exp $ */ +/* $NetBSD: phantglobs.h,v 1.5 1998/07/27 01:12:35 mycroft Exp $ */ /* * phantglobs.h - global declarations for Phantasia @@ -27,7 +27,7 @@ extern jmp_buf Timeoenv; /* used for timing out waiting for input */ extern long Fileloc; /* location in file of player statistics */ -extern char *Login; /* pointer to login of current player */ +extern const char *Login; /* pointer to login of current player */ extern char *Enemyname; /* pointer name of monster/player we are battling*/ extern struct player Player; /* stats for player */ diff --git a/rogue/init.c b/rogue/init.c index e40ca408..0e6352b3 100644 --- a/rogue/init.c +++ b/rogue/init.c @@ -1,4 +1,4 @@ -/* $NetBSD: init.c,v 1.5 1997/10/12 11:45:08 lukem Exp $ */ +/* $NetBSD: init.c,v 1.6 1998/07/27 01:12:35 mycroft Exp $ */ /* * Copyright (c) 1988, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: init.c,v 1.5 1997/10/12 11:45:08 lukem Exp $"); +__RCSID("$NetBSD: init.c,v 1.6 1998/07/27 01:12:35 mycroft Exp $"); #endif #endif /* not lint */ @@ -78,7 +78,7 @@ init(argc, argv) int argc; char *argv[]; { - char *pn; + const char *pn; int seed; seed = 0; diff --git a/rogue/machdep.c b/rogue/machdep.c index cde2bbb1..f5e90dd2 100644 --- a/rogue/machdep.c +++ b/rogue/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.7 1998/07/21 07:01:54 hubertf Exp $ */ +/* $NetBSD: machdep.c,v 1.8 1998/07/27 01:12:35 mycroft Exp $ */ /* * Copyright (c) 1988, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)machdep.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: machdep.c,v 1.7 1998/07/21 07:01:54 hubertf Exp $"); +__RCSID("$NetBSD: machdep.c,v 1.8 1998/07/27 01:12:35 mycroft Exp $"); #endif #endif /* not lint */ @@ -319,7 +319,7 @@ md_df(fname) * function, but then the score file would only have one name in it. */ -char * +const char * md_gln() { struct passwd *p; diff --git a/rogue/rogue.h b/rogue/rogue.h index 2a112815..7a793b51 100644 --- a/rogue/rogue.h +++ b/rogue/rogue.h @@ -1,4 +1,4 @@ -/* $NetBSD: rogue.h,v 1.5 1997/10/12 11:45:52 lukem Exp $ */ +/* $NetBSD: rogue.h,v 1.6 1998/07/27 01:12:36 mycroft Exp $ */ /* * Copyright (c) 1988, 1993 @@ -467,7 +467,8 @@ object *get_zapped_monster __P((short, short *, short *)); object *gr_monster __P((object *, int)); object *gr_object __P((void)); char *md_getenv __P((char *)); -char *md_gln __P((void)); +const char * + md_gln __P((void)); char *md_malloc __P((int)); char *mon_name __P((object *)); char *name_of __P((object *)); diff --git a/snake/snscore/snscore.c b/snake/snscore/snscore.c index ddcb0fb9..71b9e050 100644 --- a/snake/snscore/snscore.c +++ b/snake/snscore/snscore.c @@ -1,4 +1,4 @@ -/* $NetBSD: snscore.c,v 1.6 1997/10/12 01:49:33 lukem Exp $ */ +/* $NetBSD: snscore.c,v 1.7 1998/07/27 01:12:36 mycroft Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)snscore.c 8.1 (Berkeley) 7/19/93"; #else -__RCSID("$NetBSD: snscore.c,v 1.6 1997/10/12 01:49:33 lukem Exp $"); +__RCSID("$NetBSD: snscore.c,v 1.7 1998/07/27 01:12:36 mycroft Exp $"); #endif #endif /* not lint */ @@ -76,7 +76,7 @@ main(argc, argv) int noplayers; int i, j, notsorted; short whoallbest, allbest; - char *q; + const char *q; struct passwd *p; fd = fopen(recfile, "r"); |