diff options
author | Will Andrews <will@FreeBSD.org> | 2000-12-02 18:58:01 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2000-12-02 18:58:01 +0000 |
commit | 98c28d6cc5c5f82139199337a97c5bf2474e2be0 (patch) | |
tree | 67fc04eb741488321bd19971f2fa56d2d0e6ca7a /usr.bin/make/lst.lib/lstMember.c | |
parent | 84d4f509f028145ca2f9519734a32a2acabfcfb9 (diff) | |
download | src-98c28d6cc5c5f82139199337a97c5bf2474e2be0.tar.gz src-98c28d6cc5c5f82139199337a97c5bf2474e2be0.zip |
There's no reason to use fancy forms of NULL. Replace all instances
of NIL, NILLST, NILLGNODE, etc. with NULL.
Obtained from: OpenBSD
Notes
Notes:
svn path=/head/; revision=69527
Diffstat (limited to 'usr.bin/make/lst.lib/lstMember.c')
-rw-r--r-- | usr.bin/make/lst.lib/lstMember.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/lst.lib/lstMember.c b/usr.bin/make/lst.lib/lstMember.c index 6428ec7d7c02..f12a1fcef616 100644 --- a/usr.bin/make/lst.lib/lstMember.c +++ b/usr.bin/make/lst.lib/lstMember.c @@ -57,8 +57,8 @@ Lst_Member (l, d) register ListNode lNode; lNode = list->firstPtr; - if (lNode == NilListNode) { - return NILLNODE; + if (lNode == NULL) { + return NULL; } do { @@ -66,7 +66,7 @@ Lst_Member (l, d) return (LstNode)lNode; } lNode = lNode->nextPtr; - } while (lNode != NilListNode && lNode != list->firstPtr); + } while (lNode != NULL && lNode != list->firstPtr); - return NILLNODE; + return NULL; } |