diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-12-18 02:11:29 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-12-18 02:11:29 +0000 |
commit | 6fab9b498b27116f5e67c44c0b1764a3f51090f4 (patch) | |
tree | 34701340e8b64498cc68fbd27ef2bb2f14eaaa5f /usr.bin/make/lst.lib/lstDupl.c | |
parent | c1a30f380cfd306ea4402c76a549f35a11685b55 (diff) |
make does not use circular lists, get rid of the extra weight.
Diffstat (limited to 'usr.bin/make/lst.lib/lstDupl.c')
-rw-r--r-- | usr.bin/make/lst.lib/lstDupl.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.bin/make/lst.lib/lstDupl.c b/usr.bin/make/lst.lib/lstDupl.c index fdf9d9bc448..e91abf77383 100644 --- a/usr.bin/make/lst.lib/lstDupl.c +++ b/usr.bin/make/lst.lib/lstDupl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstDupl.c,v 1.4 1998/12/05 00:06:31 espie Exp $ */ +/* $OpenBSD: lstDupl.c,v 1.5 1999/12/18 02:11:27 espie Exp $ */ /* $NetBSD: lstDupl.c,v 1.6 1996/11/06 17:59:37 christos Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)lstDupl.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstDupl.c,v 1.4 1998/12/05 00:06:31 espie Exp $"; +static char rcsid[] = "$OpenBSD: lstDupl.c,v 1.5 1999/12/18 02:11:27 espie Exp $"; #endif #endif /* not lint */ @@ -80,7 +80,7 @@ Lst_Duplicate (l, copyProc) return (NILLST); } - nl = Lst_Init (list->isCirc); + nl = Lst_Init(); if (nl == NILLST) { return (NILLST); } @@ -95,11 +95,7 @@ Lst_Duplicate (l, copyProc) return (NILLST); } - if (list->isCirc && ln == list->lastPtr) { - ln = NilListNode; - } else { - ln = ln->nextPtr; - } + ln = ln->nextPtr; } return (nl); |