diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-01-21 19:12:14 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-01-21 19:12:14 +0000 |
commit | 7a0881cf3134f24b0e2e04e075841298f05a1618 (patch) | |
tree | 707b2b84fce0c275dd0d658cb4054a7d7acf2acf /games/rogue/monster.c | |
parent | 015a4179321bbc59cf34543034f1e859d4815555 (diff) |
make rogue const-correct, and fix one write-strings issue.
ok miod@
Diffstat (limited to 'games/rogue/monster.c')
-rw-r--r-- | games/rogue/monster.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/games/rogue/monster.c b/games/rogue/monster.c index 5c7441871f6..33ffab12a42 100644 --- a/games/rogue/monster.c +++ b/games/rogue/monster.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monster.c,v 1.6 2003/06/03 03:01:41 millert Exp $ */ +/* $OpenBSD: monster.c,v 1.7 2004/01/21 19:12:13 espie Exp $ */ /* $NetBSD: monster.c,v 1.3 1995/04/22 10:27:45 cgd Exp $ */ /* @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)monster.c 8.1 (Berkeley) 5/31/93"; #else -static const char rcsid[] = "$OpenBSD: monster.c,v 1.6 2003/06/03 03:01:41 millert Exp $"; +static const char rcsid[] = "$OpenBSD: monster.c,v 1.7 2004/01/21 19:12:13 espie Exp $"; #endif #endif /* not lint */ @@ -58,7 +58,7 @@ static const char rcsid[] = "$OpenBSD: monster.c,v 1.6 2003/06/03 03:01:41 mille object level_monsters; boolean mon_disappeared; -char *m_names[] = { +const char *m_names[] = { "aquator", "bat", "centaur", @@ -602,7 +602,7 @@ wake_room(rn, entering, row, col) } } -char * +const char * mon_name(monster) object *monster; { @@ -830,7 +830,7 @@ char gr_obj_char() { short r; - char *rs = "%!?]=/):*"; + const char *rs = "%!?]=/):*"; r = get_rand(0, 8); |