Module Name:    src
Committed By:   rillig
Date:           Fri May 31 07:11:12 UTC 2024

Modified Files:
        src/usr.bin/make: hash.c

Log Message:
make: simplify expression in iteration over hash tables


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/usr.bin/make/hash.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/hash.c
diff -u src/usr.bin/make/hash.c:1.76 src/usr.bin/make/hash.c:1.77
--- src/usr.bin/make/hash.c:1.76	Fri May 31 05:50:11 2024
+++ src/usr.bin/make/hash.c	Fri May 31 07:11:12 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: hash.c,v 1.76 2024/05/31 05:50:11 rillig Exp $	*/
+/*	$NetBSD: hash.c,v 1.77 2024/05/31 07:11:12 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -74,7 +74,7 @@
 #include "make.h"
 
 /*	"@(#)hash.c	8.1 (Berkeley) 6/6/93"	*/
-MAKE_RCSID("$NetBSD: hash.c,v 1.76 2024/05/31 05:50:11 rillig Exp $");
+MAKE_RCSID("$NetBSD: hash.c,v 1.77 2024/05/31 07:11:12 rillig Exp $");
 
 /*
  * The ratio of # entries to # buckets at which we rebuild the table to
@@ -317,7 +317,7 @@ HashIter_Next(HashIter *hi)
 		he = buckets[hi->nextBucket++];
 	}
 	hi->entry = he;
-	return he != NULL;
+	return true;
 }
 
 void

Reply via email to