summaryrefslogtreecommitdiffstats
path: root/adventure
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-03-18 23:35:51 +0000
committerchristos <christos@NetBSD.org>2006-03-18 23:35:51 +0000
commit3533c2661adbdd6a8e87bd34fb50c67c12744499 (patch)
treee55a242ae87c71971c7e2bac1f2ab9392bd85a81 /adventure
parent3f1fdbd285757684e5ac5c43385ccfcce6f13081 (diff)
downloadbsdgames-darwin-3533c2661adbdd6a8e87bd34fb50c67c12744499.tar.gz
bsdgames-darwin-3533c2661adbdd6a8e87bd34fb50c67c12744499.tar.zst
bsdgames-darwin-3533c2661adbdd6a8e87bd34fb50c67c12744499.zip
Coverity CID 570: Remove impossible check.
Diffstat (limited to 'adventure')
-rw-r--r--adventure/vocab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/adventure/vocab.c b/adventure/vocab.c
index f1ee2b95..6d361e21 100644
--- a/adventure/vocab.c
+++ b/adventure/vocab.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vocab.c,v 1.12 2005/07/01 00:03:36 jmc Exp $ */
+/* $NetBSD: vocab.c,v 1.13 2006/03/18 23:35:51 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)vocab.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: vocab.c,v 1.12 2005/07/01 00:03:36 jmc Exp $");
+__RCSID("$NetBSD: vocab.c,v 1.13 2006/03/18 23:35:51 christos Exp $");
#endif
#endif /* not lint */
@@ -184,7 +184,7 @@ vocab(const char *word, int type, int value)
}
exitloop2: /* hashed entry does not match */
- if (adr + 1 == hash || (adr == HTSIZE && hash == 0))
+ if (adr + 1 == hash || hash == 0)
errx(1,"Hash table overflow");
}
}