summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/lst.lib/lstDupl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/lst.lib/lstDupl.c')
-rw-r--r--usr.bin/make/lst.lib/lstDupl.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/make/lst.lib/lstDupl.c b/usr.bin/make/lst.lib/lstDupl.c
index 4c5ee04..6d0665bb 100644
--- a/usr.bin/make/lst.lib/lstDupl.c
+++ b/usr.bin/make/lst.lib/lstDupl.c
@@ -56,7 +56,7 @@ __RCSID("$FreeBSD$");
* given, the individual client elements will be duplicated as well.
*
* Results:
- * The new Lst structure or NILLST if failure.
+ * The new Lst structure or NULL if failure.
*
* Side Effects:
* A new list is created.
@@ -73,26 +73,26 @@ Lst_Duplicate (l, copyProc)
register List list = (List)l;
if (!LstValid (l)) {
- return (NILLST);
+ return (NULL);
}
nl = Lst_Init (list->isCirc);
- if (nl == NILLST) {
- return (NILLST);
+ if (nl == NULL) {
+ return (NULL);
}
ln = list->firstPtr;
- while (ln != NilListNode) {
+ while (ln != NULL) {
if (copyProc != NOCOPY) {
if (Lst_AtEnd (nl, (*copyProc) (ln->datum)) == FAILURE) {
- return (NILLST);
+ return (NULL);
}
} else if (Lst_AtEnd (nl, ln->datum) == FAILURE) {
- return (NILLST);
+ return (NULL);
}
if (list->isCirc && ln == list->lastPtr) {
- ln = NilListNode;
+ ln = NULL;
} else {
ln = ln->nextPtr;
}
OpenPOWER on IntegriCloud