summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2012-06-19 05:46:08 +0000
committerdholland <dholland@NetBSD.org>2012-06-19 05:46:08 +0000
commit59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c (patch)
tree629475be65e4569ada852759c1510dc0ea17512f /hack
parent4cb1100e13371f1523900523aba506ae1c62e44c (diff)
downloadbsdgames-darwin-59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c.tar.gz
bsdgames-darwin-59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c.tar.zst
bsdgames-darwin-59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c.zip
WARNS=5, and make WARNS=5 the default for src/games.
Diffstat (limited to 'hack')
-rw-r--r--hack/hack.shk.c7
-rw-r--r--hack/hack.shknam.c13
2 files changed, 11 insertions, 9 deletions
diff --git a/hack/hack.shk.c b/hack/hack.shk.c
index 3c6f962f..7fa85b74 100644
--- a/hack/hack.shk.c
+++ b/hack/hack.shk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.shk.c,v 1.13 2011/08/07 06:03:45 dholland Exp $ */
+/* $NetBSD: hack.shk.c,v 1.14 2012/06/19 05:46:08 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.shk.c,v 1.13 2011/08/07 06:03:45 dholland Exp $");
+__RCSID("$NetBSD: hack.shk.c,v 1.14 2012/06/19 05:46:08 dholland Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -1103,8 +1103,7 @@ notonl_ok:
/* He is digging in the shop. */
void
-shopdig(fall)
- int fall;
+shopdig(int fall)
{
if (!fall) {
if (u.utraptype == TT_PIT)
diff --git a/hack/hack.shknam.c b/hack/hack.shknam.c
index e503d449..ef17c94e 100644
--- a/hack/hack.shknam.c
+++ b/hack/hack.shknam.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.shknam.c,v 1.7 2009/08/12 07:28:41 dholland Exp $ */
+/* $NetBSD: hack.shknam.c,v 1.8 2012/06/19 05:46:08 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.shknam.c,v 1.7 2009/08/12 07:28:41 dholland Exp $");
+__RCSID("$NetBSD: hack.shknam.c,v 1.8 2012/06/19 05:46:08 dholland Exp $");
#endif /* not lint */
#include "hack.h"
@@ -206,13 +206,16 @@ static const struct shk_nx {
};
void
-findname(nampt, let)
- char *nampt;
- char let;
+findname(char *nampt, int let_i)
{
const struct shk_nx *p = shk_nx;
const char *const *q;
int i;
+ char let;
+
+ /* truncate to "char" width */
+ let = let_i;
+
while (p->x && p->x != let)
p++;
q = p->xn;