summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/lst.lib/lstAppend.c
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-12-02 18:58:01 +0000
committerwill <will@FreeBSD.org>2000-12-02 18:58:01 +0000
commit797262c9e92824a19005f56e85cd3f19b8273f9b (patch)
tree7680565ed1402e4003087d01cf0b545aee3b625e /usr.bin/make/lst.lib/lstAppend.c
parentd04b66b7bc8243e8d0f41b0ec49287b046f7896c (diff)
downloadFreeBSD-src-797262c9e92824a19005f56e85cd3f19b8273f9b.zip
FreeBSD-src-797262c9e92824a19005f56e85cd3f19b8273f9b.tar.gz
There's no reason to use fancy forms of NULL. Replace all instances
of NIL, NILLST, NILLGNODE, etc. with NULL. Obtained from: OpenBSD
Diffstat (limited to 'usr.bin/make/lst.lib/lstAppend.c')
-rw-r--r--usr.bin/make/lst.lib/lstAppend.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/make/lst.lib/lstAppend.c b/usr.bin/make/lst.lib/lstAppend.c
index 6b73f46..155addc 100644
--- a/usr.bin/make/lst.lib/lstAppend.c
+++ b/usr.bin/make/lst.lib/lstAppend.c
@@ -60,7 +60,7 @@ __RCSID("$FreeBSD$");
* A new ListNode is created and linked in to the List. The lastPtr
* field of the List will be altered if ln is the last node in the
* list. lastPtr and firstPtr will alter if the list was empty and
- * ln was NILLNODE.
+ * ln was NULL.
*
*-----------------------------------------------------------------------
*/
@@ -74,7 +74,7 @@ Lst_Append (l, ln, d)
register ListNode lNode;
register ListNode nLNode;
- if (LstValid (l) && (ln == NILLNODE && LstIsEmpty (l))) {
+ if (LstValid (l) && (ln == NULL && LstIsEmpty (l))) {
goto ok;
}
@@ -90,11 +90,11 @@ Lst_Append (l, ln, d)
nLNode->datum = d;
nLNode->useCount = nLNode->flags = 0;
- if (lNode == NilListNode) {
+ if (lNode == NULL) {
if (list->isCirc) {
nLNode->nextPtr = nLNode->prevPtr = nLNode;
} else {
- nLNode->nextPtr = nLNode->prevPtr = NilListNode;
+ nLNode->nextPtr = nLNode->prevPtr = NULL;
}
list->firstPtr = list->lastPtr = nLNode;
} else {
@@ -102,7 +102,7 @@ Lst_Append (l, ln, d)
nLNode->nextPtr = lNode->nextPtr;
lNode->nextPtr = nLNode;
- if (nLNode->nextPtr != NilListNode) {
+ if (nLNode->nextPtr != NULL) {
nLNode->nextPtr->prevPtr = nLNode;
}
OpenPOWER on IntegriCloud