From e65ea2146d73aa6aedf8ef3fb0fd535039da6887 Mon Sep 17 00:00:00 2001 From: harti Date: Tue, 7 Dec 2004 10:14:16 +0000 Subject: Make needs no circular lists so remove them from the list code. --- usr.bin/make/lst.lib/lstAppend.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'usr.bin/make/lst.lib/lstAppend.c') diff --git a/usr.bin/make/lst.lib/lstAppend.c b/usr.bin/make/lst.lib/lstAppend.c index f18cee4..109292d 100644 --- a/usr.bin/make/lst.lib/lstAppend.c +++ b/usr.bin/make/lst.lib/lstAppend.c @@ -89,11 +89,7 @@ Lst_Append(Lst list, LstNode ln, void *d) nLNode->useCount = nLNode->flags = 0; if (ln == NULL) { - if (list->isCirc) { - nLNode->nextPtr = nLNode->prevPtr = nLNode; - } else { - nLNode->nextPtr = nLNode->prevPtr = NULL; - } + nLNode->nextPtr = nLNode->prevPtr = NULL; list->firstPtr = list->lastPtr = nLNode; } else { nLNode->prevPtr = ln; -- cgit v1.1