-/* $NetBSD: hack.potion.c,v 1.4 1997/10/19 16:58:48 christos Exp $ */
+/* $NetBSD: hack.potion.c,v 1.5 2001/03/25 20:44:02 jsm Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.potion.c,v 1.4 1997/10/19 16:58:48 christos Exp $");
+__RCSID("$NetBSD: hack.potion.c,v 1.5 2001/03/25 20:44:02 jsm Exp $");
#endif /* not lint */
#include "hack.h"
void
strange_feeling(obj, txt)
struct obj *obj;
- char *txt;
+ const char *txt;
{
if (flags.beginner)
pline("You have a strange feeling for a moment, then it passes.");
useup(obj);
}
-char *bottlenames[] = {
+const char *const bottlenames[] = {
"bottle", "phial", "flagon", "carafe", "flask", "jar", "vial"
};
struct monst *mon;
struct obj *obj;
{
- char *botlnam = bottlenames[rn2(SIZE(bottlenames))];
+ const char *botlnam = bottlenames[rn2(SIZE(bottlenames))];
boolean uclose, isyou = (mon == &youmonst);
if (isyou) {