summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/lst.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/lst.h')
-rw-r--r--usr.bin/make/lst.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/make/lst.h b/usr.bin/make/lst.h
index 1b734c6..497d59c 100644
--- a/usr.bin/make/lst.h
+++ b/usr.bin/make/lst.h
@@ -113,8 +113,7 @@ void Lst_Append(Lst *, LstNode *, void *);
/* Remove an element */
void Lst_Remove(Lst *, LstNode *);
/* Replace a node with a new value */
-#define Lst_Replace(NODE, D) (((NODE) == NULL) ? FAILURE : \
- (((NODE)->datum = (D)), SUCCESS))
+#define Lst_Replace(NODE, D) ((void)((NODE)->datum = (D)))
/* Concatenate two lists */
void Lst_Concat(Lst *, Lst *, int);
OpenPOWER on IntegriCloud