summaryrefslogtreecommitdiffstats
path: root/rogue/object.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-11-10 13:01:31 +0000
committerhubertf <hubertf@NetBSD.org>1998-11-10 13:01:31 +0000
commit7d7fd1d69fceb79900e4d597c5e2bdbad06d6cc0 (patch)
tree08c3c9c428446f82830e48fe1f270f237f757c65 /rogue/object.c
parent05f879242cedc51b52d70804261f502a94ac5893 (diff)
downloadbsdgames-darwin-7d7fd1d69fceb79900e4d597c5e2bdbad06d6cc0.tar.gz
bsdgames-darwin-7d7fd1d69fceb79900e4d597c5e2bdbad06d6cc0.zip
constify, per PR 6148
Diffstat (limited to 'rogue/object.c')
-rw-r--r--rogue/object.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/rogue/object.c b/rogue/object.c
index 874af97a..8330f7ed 100644
--- a/rogue/object.c
+++ b/rogue/object.c
@@ -1,4 +1,4 @@
-/* $NetBSD: object.c,v 1.7 1998/09/11 14:09:27 hubertf Exp $ */
+/* $NetBSD: object.c,v 1.8 1998/11/10 13:01:32 hubertf Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)object.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: object.c,v 1.7 1998/09/11 14:09:27 hubertf Exp $");
+__RCSID("$NetBSD: object.c,v 1.8 1998/11/10 13:01:32 hubertf Exp $");
#endif
#endif /* not lint */
@@ -295,11 +295,11 @@ free_stuff(objlist)
}
}
-char *
+const char *
name_of(obj)
- object *obj;
+ const object *obj;
{
- char *retstring;
+ const char *retstring;
switch(obj->what_is) {
case SCROL:
@@ -624,7 +624,7 @@ put_stairs()
int
get_armor_class(obj)
- object *obj;
+ const object *obj;
{
if (obj) {
return(obj->class + obj->d_enchant);