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/hit.c | |
parent | 015a4179321bbc59cf34543034f1e859d4815555 (diff) |
make rogue const-correct, and fix one write-strings issue.
ok miod@
Diffstat (limited to 'games/rogue/hit.c')
-rw-r--r-- | games/rogue/hit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/games/rogue/hit.c b/games/rogue/hit.c index 5fc5a69c611..aa95886d0d7 100644 --- a/games/rogue/hit.c +++ b/games/rogue/hit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hit.c,v 1.5 2003/06/03 03:01:41 millert Exp $ */ +/* $OpenBSD: hit.c,v 1.6 2004/01/21 19:12:13 espie Exp $ */ /* $NetBSD: hit.c,v 1.3 1995/04/22 10:27:30 cgd Exp $ */ /* @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)hit.c 8.1 (Berkeley) 5/31/93"; #else -static const char rcsid[] = "$OpenBSD: hit.c,v 1.5 2003/06/03 03:01:41 millert Exp $"; +static const char rcsid[] = "$OpenBSD: hit.c,v 1.6 2004/01/21 19:12:13 espie Exp $"; #endif #endif /* not lint */ @@ -63,7 +63,7 @@ mon_hit(monster) object *monster; { short damage, hit_chance; - char *mn; + const char *mn; float minus; if (fight_monster && (monster != fight_monster)) { @@ -178,7 +178,7 @@ rogue_damage(d, monster, other) int get_damage(ds, r) - char *ds; + const char *ds; boolean r; { int i = 0, j, n, d, total = 0; @@ -231,7 +231,7 @@ get_w_damage(obj) int get_number(s) - char *s; + const char *s; { int i = 0; int total = 0; @@ -289,7 +289,7 @@ mon_damage(monster, damage) object *monster; short damage; { - char *mn; + const char *mn; short row, col; monster->hp_to_kill -= damage; |