X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/84e7d0704483ce39bbdeacd5e676168db6fa664f..7562e03d5a67f7fca8205dbab0b115d63e08b0b7:/hack/hack.invent.c diff --git a/hack/hack.invent.c b/hack/hack.invent.c index 2c8b94cf..c81bdef6 100644 --- a/hack/hack.invent.c +++ b/hack/hack.invent.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.invent.c,v 1.5 1997/10/19 16:58:05 christos Exp $ */ +/* $NetBSD: hack.invent.c,v 1.7 2001/03/25 20:44:00 jsm Exp $ */ /* * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. @@ -6,7 +6,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.invent.c,v 1.5 1997/10/19 16:58:05 christos Exp $"); +__RCSID("$NetBSD: hack.invent.c,v 1.7 2001/03/25 20:44:00 jsm Exp $"); #endif /* not lint */ #include @@ -335,7 +335,7 @@ mkgoldobj(q) */ struct obj * getobj(let, word) - char *let, *word; + const char *let, *word; { struct obj *otmp; char ilet, ilet1, ilet2; @@ -508,7 +508,7 @@ ckunpaid(otmp) /* return the number of times fn was called successfully */ int ggetobj(word, fn, max) - char *word; + const char *word; int (*fn) __P((struct obj *)); int max; { @@ -797,9 +797,9 @@ dotypeinv() int dolook() { - struct obj *otmp, *otmp0; - struct gold *gold; - char *verb = Blind ? "feel" : "see"; + struct obj *otmp = NULL, *otmp0 = NULL; + struct gold *gold = NULL; + const char *verb = Blind ? "feel" : "see"; int ct = 0; if (!u.uswallow) { @@ -866,6 +866,7 @@ stackobj(obj) int merged(otmp, obj, lose) struct obj *otmp, *obj; + int lose; { if (obj->otyp == otmp->otyp && obj->unpaid == otmp->unpaid &&