summaryrefslogtreecommitdiffstats
path: root/adventure/vocab.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-09-13 00:07:24 +0000
committerhubertf <hubertf@NetBSD.org>1998-09-13 00:07:24 +0000
commitc352f3e872a5c707bab0c5de75c1a6e5c4ca9cbb (patch)
tree6851ebb9da45b6488dcea64b004f231a9eb2caee /adventure/vocab.c
parent36d0ac95346e7a22f32d5613230227fcfd74fa51 (diff)
downloadbsdgames-darwin-c352f3e872a5c707bab0c5de75c1a6e5c4ca9cbb.tar.gz
bsdgames-darwin-c352f3e872a5c707bab0c5de75c1a6e5c4ca9cbb.tar.zst
bsdgames-darwin-c352f3e872a5c707bab0c5de75c1a6e5c4ca9cbb.zip
constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'adventure/vocab.c')
-rw-r--r--adventure/vocab.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/adventure/vocab.c b/adventure/vocab.c
index 8b12e51b..d97be635 100644
--- a/adventure/vocab.c
+++ b/adventure/vocab.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vocab.c,v 1.6 1998/08/24 22:26:23 hubertf Exp $ */
+/* $NetBSD: vocab.c,v 1.7 1998/09/13 00:07:24 hubertf Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)vocab.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: vocab.c,v 1.6 1998/08/24 22:26:23 hubertf Exp $");
+__RCSID("$NetBSD: vocab.c,v 1.7 1998/09/13 00:07:24 hubertf Exp $");
#endif
#endif /* not lint */
@@ -137,13 +137,14 @@ drop(object, where)
int
vocab(word, type, value) /* look up or store a word */
- char *word;
+ const char *word;
int type; /* -2 for store, -1 for user word, >=0 for
* canned lookup */
int value; /* used for storing only */
{
int adr;
- char *s, *t;
+ const char *s;
+ char *t;
int hash, i;
struct hashtab *h;