summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1998-09-03 15:50:33 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1998-09-03 15:50:33 +0000
commitb34ed115db5e55426b0cc700e0a0e692583a4653 (patch)
treef78a5b2eb0654b7316379da7fd0fd1072930d835
parent299425510f015c54d5b5fd3bfd82d813d628ea62 (diff)
Correct loop termination for adosfs_ihashget
-rw-r--r--sys/adosfs/adutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/adosfs/adutil.c b/sys/adosfs/adutil.c
index 6449f0af4fa..6ef8b88f124 100644
--- a/sys/adosfs/adutil.c
+++ b/sys/adosfs/adutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adutil.c,v 1.11 1998/08/21 23:03:14 csapuntz Exp $ */
+/* $OpenBSD: adutil.c,v 1.12 1998/09/03 15:50:32 csapuntz Exp $ */
/* $NetBSD: adutil.c,v 1.15 1996/10/13 02:52:07 christos Exp $ */
/*
@@ -97,7 +97,7 @@ adosfs_ainshash(amp, ap)
hp = &amp->anodetab[AHASH(ap->block)];
- for (aq = hp->lh_first; ; aq = aq->link.le_next) {
+ for (aq = hp->lh_first; aq ; aq = aq->link.le_next) {
if (aq->block == ap->block) {
lockmgr(&ap->a_lock, LK_RELEASE,
(struct simplelock *)0, p);