summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/lst.lib/lstReplace.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/lst.lib/lstReplace.c')
-rw-r--r--usr.bin/make/lst.lib/lstReplace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/lst.lib/lstReplace.c b/usr.bin/make/lst.lib/lstReplace.c
index c41dea1..f321583 100644
--- a/usr.bin/make/lst.lib/lstReplace.c
+++ b/usr.bin/make/lst.lib/lstReplace.c
@@ -46,7 +46,8 @@ __FBSDID("$FreeBSD$");
* Replace the datum in a node with a new datum
*/
-#include "lstInt.h"
+#include "make.h"
+#include "lst.h"
/*-
*-----------------------------------------------------------------------
@@ -68,8 +69,7 @@ Lst_Replace(LstNode ln, void *d)
if (ln == NULL) {
return (FAILURE);
} else {
- ((ListNode) ln)->datum = d;
+ ln->datum = d;
return (SUCCESS);
}
}
-
OpenPOWER on IntegriCloud