summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/lst.lib/lstSucc.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/lst.lib/lstSucc.c')
-rw-r--r--usr.bin/make/lst.lib/lstSucc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/make/lst.lib/lstSucc.c b/usr.bin/make/lst.lib/lstSucc.c
index ff1dd68..edd3961 100644
--- a/usr.bin/make/lst.lib/lstSucc.c
+++ b/usr.bin/make/lst.lib/lstSucc.c
@@ -46,7 +46,8 @@ __FBSDID("$FreeBSD$");
* return the successor to a given node
*/
-#include "lstInt.h"
+#include "make.h"
+#include "lst.h"
/*-
*-----------------------------------------------------------------------
@@ -70,6 +71,6 @@ Lst_Succ(LstNode ln)
if (ln == NULL) {
return (NULL);
} else {
- return ((LstNode) ((ListNode) ln)->nextPtr);
+ return (ln->nextPtr);
}
}
OpenPOWER on IntegriCloud