diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-12-18 21:58:09 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-12-18 21:58:09 +0000 |
commit | b638137ef821c77bfa7837b6f8fd27fde9dcbca7 (patch) | |
tree | 8e4120cef93fabc34e0d6b1588b1990ae121aef8 /usr.bin/make/lst.lib/lstReplace.c | |
parent | 1054102ac1e5da024bb0316738d7cef7f996d28b (diff) |
Nothing ever checks ReturnStatus on Lst_Insert, Lst_Append, Lst_AtFront,
Lst_AtEnd, Lst_Concat, Lst_Remove, Lst_Replace.
Don't bother returning one.
Diffstat (limited to 'usr.bin/make/lst.lib/lstReplace.c')
-rw-r--r-- | usr.bin/make/lst.lib/lstReplace.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/usr.bin/make/lst.lib/lstReplace.c b/usr.bin/make/lst.lib/lstReplace.c index 467fffe486b..d638c3a7f1d 100644 --- a/usr.bin/make/lst.lib/lstReplace.c +++ b/usr.bin/make/lst.lib/lstReplace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstReplace.c,v 1.5 1999/12/18 21:53:34 espie Exp $ */ +/* $OpenBSD: lstReplace.c,v 1.6 1999/12/18 21:58:08 espie Exp $ */ /* $NetBSD: lstReplace.c,v 1.5 1996/11/06 17:59:51 christos Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)lstReplace.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstReplace.c,v 1.5 1999/12/18 21:53:34 espie Exp $"; +static char rcsid[] = "$OpenBSD: lstReplace.c,v 1.6 1999/12/18 21:58:08 espie Exp $"; #endif #endif /* not lint */ @@ -57,24 +57,16 @@ static char rcsid[] = "$OpenBSD: lstReplace.c,v 1.5 1999/12/18 21:53:34 espie Ex * Lst_Replace -- * Replace the datum in the given node with the new datum * - * Results: - * SUCCESS or FAILURE. - * * Side Effects: * The datum field fo the node is altered. * *----------------------------------------------------------------------- */ -ReturnStatus +void Lst_Replace (ln, d) - register LstNode ln; + LstNode ln; ClientData d; { - if (ln == NULL) { - return (FAILURE); - } else { + if (ln != NULL) ((ListNode) ln)->datum = d; - return (SUCCESS); - } } - |