summaryrefslogtreecommitdiff
path: root/games/hack/hack.shk.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
commit3e150a880447536a0af58c395e5a857635e985d3 (patch)
tree867c3504f60ee9bfd2fa5db3dd66d5b3a1649ecd /games/hack/hack.shk.c
parent8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff)
r?index -> strr?chr
Diffstat (limited to 'games/hack/hack.shk.c')
-rw-r--r--games/hack/hack.shk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hack/hack.shk.c b/games/hack/hack.shk.c
index a3adc7b8358..ab4e3f81017 100644
--- a/games/hack/hack.shk.c
+++ b/games/hack/hack.shk.c
@@ -608,7 +608,7 @@ register struct bill_x *bp;
return;
if(ESHK(shopkeeper)->billct == BILLSZ ||
((tmp = shtypes[rooms[ESHK(shopkeeper)->shoproom].rtype-8]) && tmp != obj->olet)
- || index("_0", obj->olet)) {
+ || strchr("_0", obj->olet)) {
pline("%s seems not interested.", Monnam(shopkeeper));
return;
}
@@ -985,7 +985,7 @@ online(x,y) {
follower(mtmp)
register struct monst *mtmp;
{
- return( mtmp->mtame || index("1TVWZi&, ", mtmp->data->mlet)
+ return( mtmp->mtame || strchr("1TVWZi&, ", mtmp->data->mlet)
#ifndef QUEST
|| (mtmp->isshk && ESHK(mtmp)->following)
#endif QUEST