From 04539cb235b06fd8cacf5c4c40081bd86e0dfa04 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 7 Aug 2011 06:03:45 +0000 Subject: Fix up some lint. --- hack/hack.do_name.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'hack/hack.do_name.c') diff --git a/hack/hack.do_name.c b/hack/hack.do_name.c index 9cf5e40b..c01e35b4 100644 --- a/hack/hack.do_name.c +++ b/hack/hack.do_name.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.do_name.c,v 1.12 2011/08/06 20:29:37 dholland Exp $ */ +/* $NetBSD: hack.do_name.c,v 1.13 2011/08/07 06:03:45 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.do_name.c,v 1.12 2011/08/06 20:29:37 dholland Exp $"); +__RCSID("$NetBSD: hack.do_name.c,v 1.13 2011/08/07 06:03:45 dholland Exp $"); #endif /* not lint */ #include @@ -119,7 +119,8 @@ do_mname(void) { char buf[BUFSZ]; coord cc; - int cx, cy, lth; + int cx, cy; + size_t lth; unsigned i; struct monst *mtmp, *mtmp2; cc = getpos(0, "the monster you want to name"); @@ -173,7 +174,7 @@ static void do_oname(struct obj *obj) { struct obj *otmp, *otmp2; - int lth; + size_t lth; char buf[BUFSZ]; pline("What do you want to name %s? ", doname(obj)); getlin(buf); @@ -295,7 +296,7 @@ xmonnam(struct monst *mtmp, int vb) (void) strlcpy(buf, shkname(mtmp), sizeof(buf)); break; } - /* fall into next case */ + /* FALLTHROUGH */ default: (void) snprintf(buf, sizeof(buf), "the %s%s", mtmp->minvis ? "invisible " : "", -- cgit v1.2.3-56-ge451