diff options
author | dholland <dholland@NetBSD.org> | 2008-01-28 06:55:41 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-01-28 06:55:41 +0000 |
commit | dfce1cca7e9f2a93d3246b5dba2113e20cbc447a (patch) | |
tree | 44b17315ece5b2f5ce5ec3ebea7e212a0525e0c3 /hack/hack.u_init.c | |
parent | e0675e304b50073e40bf7b5d3bfc9ef7d7358ace (diff) | |
download | bsdgames-darwin-dfce1cca7e9f2a93d3246b5dba2113e20cbc447a.tar.gz bsdgames-darwin-dfce1cca7e9f2a93d3246b5dba2113e20cbc447a.tar.zst bsdgames-darwin-dfce1cca7e9f2a93d3246b5dba2113e20cbc447a.zip |
Make hack build with WARNS=4.
Diffstat (limited to 'hack/hack.u_init.c')
-rw-r--r-- | hack/hack.u_init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hack/hack.u_init.c b/hack/hack.u_init.c index 9b111029..de2fbfb0 100644 --- a/hack/hack.u_init.c +++ b/hack/hack.u_init.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.u_init.c,v 1.8 2004/11/05 21:30:32 dsl Exp $ */ +/* $NetBSD: hack.u_init.c,v 1.9 2008/01/28 06:55:42 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.u_init.c,v 1.8 2004/11/05 21:30:32 dsl Exp $"); +__RCSID("$NetBSD: hack.u_init.c,v 1.9 2008/01/28 06:55:42 dholland Exp $"); #endif /* not lint */ #include <ctype.h> @@ -311,9 +311,9 @@ got_suffix: } find_ac(); if (!rn2(20)) { - int d = rn2(7) - 2; /* biased variation */ - u.ustr += d; - u.ustrmax += d; + int dr = rn2(7) - 2; /* biased variation */ + u.ustr += dr; + u.ustrmax += dr; } #ifdef WIZARD if (wizard) |