Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): remove another piece of code for circu...
details: https://anonhg.NetBSD.org/src/rev/b87bca6e17d4
branches: trunk
changeset: 937673:b87bca6e17d4
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Aug 23 11:13:08 2020 +0000
description:
make(1): remove another piece of code for circular lists
diffstat:
usr.bin/make/lst.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 7602582dbf91 -r b87bca6e17d4 usr.bin/make/lst.c
--- a/usr.bin/make/lst.c Sun Aug 23 11:04:58 2020 +0000
+++ b/usr.bin/make/lst.c Sun Aug 23 11:13:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lst.c,v 1.37 2020/08/23 10:53:27 rillig Exp $ */
+/* $NetBSD: lst.c,v 1.38 2020/08/23 11:13:08 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -37,11 +37,11 @@
#include "make.h"
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lst.c,v 1.37 2020/08/23 10:53:27 rillig Exp $";
+static char rcsid[] = "$NetBSD: lst.c,v 1.38 2020/08/23 11:13:08 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: lst.c,v 1.37 2020/08/23 10:53:27 rillig Exp $");
+__RCSID("$NetBSD: lst.c,v 1.38 2020/08/23 11:13:08 rillig Exp $");
#endif /* not lint */
#endif
@@ -472,12 +472,11 @@
/*
* We're done with the traversal if
- * - the next node to examine is the first in the queue or
- * doesn't exist and
+ * - the next node to examine doesn't exist and
* - nothing's been added after the current node (check this
* after proc() has been called).
*/
- done = (next == NULL || next == list->first);
+ done = next == NULL;
tln->useCount++;
result = (*proc)(tln->datum, procData);
Home |
Main Index |
Thread Index |
Old Index