From e87f7a15ad62e1dd25061ddb301662e809692c2c Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 4 Feb 2001 13:13:25 +0000 Subject: Mechanical change to use macro API instead of fondling implementation details. Created with: sed(1) Reviewed by: md5(1) --- sys/miscfs/nullfs/null_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/miscfs/nullfs/null_subr.c') diff --git a/sys/miscfs/nullfs/null_subr.c b/sys/miscfs/nullfs/null_subr.c index 68b0431..fe5f988 100644 --- a/sys/miscfs/nullfs/null_subr.c +++ b/sys/miscfs/nullfs/null_subr.c @@ -121,7 +121,7 @@ null_node_find(mp, lowervp) hd = NULL_NHASH(lowervp); loop: lockmgr(&null_hashlock, LK_EXCLUSIVE, NULL, p); - for (a = hd->lh_first; a != 0; a = a->null_hash.le_next) { + LIST_FOREACH(a, hd, null_hash) { if (a->null_lowervp == lowervp && NULLTOV(a)->v_mount == mp) { vp = NULLTOV(a); lockmgr(&null_hashlock, LK_RELEASE, NULL, p); -- cgit v1.1