summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/lst.lib/lstInsert.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-12-07 10:14:16 +0000
committerharti <harti@FreeBSD.org>2004-12-07 10:14:16 +0000
commite65ea2146d73aa6aedf8ef3fb0fd535039da6887 (patch)
treedc544ee893c2b95a0e4d64009cb9fe98b5598e7c /usr.bin/make/lst.lib/lstInsert.c
parent4a639d6164f667049cce0046d22e760ca1aad3f2 (diff)
downloadFreeBSD-src-e65ea2146d73aa6aedf8ef3fb0fd535039da6887.zip
FreeBSD-src-e65ea2146d73aa6aedf8ef3fb0fd535039da6887.tar.gz
Make needs no circular lists so remove them from the list code.
Diffstat (limited to 'usr.bin/make/lst.lib/lstInsert.c')
-rw-r--r--usr.bin/make/lst.lib/lstInsert.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/make/lst.lib/lstInsert.c b/usr.bin/make/lst.lib/lstInsert.c
index 160ace3..53d8065 100644
--- a/usr.bin/make/lst.lib/lstInsert.c
+++ b/usr.bin/make/lst.lib/lstInsert.c
@@ -90,11 +90,7 @@ Lst_Insert(Lst list, LstNode ln, void *d)
nLNode->useCount = nLNode->flags = 0;
if (ln == NULL) {
- if (list->isCirc) {
- nLNode->prevPtr = nLNode->nextPtr = nLNode;
- } else {
- nLNode->prevPtr = nLNode->nextPtr = NULL;
- }
+ nLNode->prevPtr = nLNode->nextPtr = NULL;
list->firstPtr = list->lastPtr = nLNode;
} else {
nLNode->prevPtr = ln->prevPtr;
OpenPOWER on IntegriCloud