]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - rogue/score.c
constify, per PR 6148
[bsdgames-darwin.git] / rogue / score.c
index 4bfcaccc3c044735a5cf4c2068534fd2fdfdd0d7..bc4f580f679f769f0f4029d89c431b42d40fab06 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: score.c,v 1.6 1997/10/12 11:46:01 lukem Exp $  */
+/*     $NetBSD: score.c,v 1.7 1998/11/10 13:01:32 hubertf Exp $        */
 
 /*
  * Copyright (c) 1988, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)score.c    8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: score.c,v 1.6 1997/10/12 11:46:01 lukem Exp $");
+__RCSID("$NetBSD: score.c,v 1.7 1998/11/10 13:01:32 hubertf Exp $");
 #endif
 #endif /* not lint */
 
@@ -63,7 +63,7 @@ __RCSID("$NetBSD: score.c,v 1.6 1997/10/12 11:46:01 lukem Exp $");
 
 void
 killed_by(monster, other)
-       object *monster;
+       const object *monster;
        short other;
 {
        char buf[128];
@@ -200,7 +200,7 @@ quit(from_intrpt)
 
 void
 put_scores(monster, other)
-       object *monster;
+       const object *monster;
        short other;
 {
        short i, n, rank = 10, x, ne = 0, found_player = -1;
@@ -329,9 +329,9 @@ void
 insert_score(scores, n_names, n_name, rank, n, monster, other)
        char scores[][82];
        char n_names[][30];
-       char *n_name;
+       const char *n_name;
        short rank, n;
-       object *monster;
+       const object *monster;
        int other;
 {
        short i;
@@ -436,7 +436,7 @@ sell_pack()
 
 int
 get_value(obj)
-       object *obj;
+       const object *obj;
 {
        short wc;
        int val;
@@ -507,7 +507,8 @@ id_all()
 
 int
 name_cmp(s1, s2)
-       char *s1, *s2;
+       char *s1;
+       const char *s2;
 {
        short i = 0;
        int r;
@@ -558,7 +559,8 @@ xxx(st)
 
 void
 nickize(buf, score, n_name)
-       char *buf, *score, *n_name;
+       char *buf;
+       const char *score, *n_name;
 {
        short i = 15, j;
 
@@ -585,7 +587,7 @@ nickize(buf, score, n_name)
 void
 center(row, buf)
        short row;
-       char *buf;
+       const char *buf;
 {
        short margin;