summaryrefslogtreecommitdiff
path: root/usr.bin/make/lst.lib/lstEnQueue.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-12-18 21:58:09 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-12-18 21:58:09 +0000
commitb638137ef821c77bfa7837b6f8fd27fde9dcbca7 (patch)
tree8e4120cef93fabc34e0d6b1588b1990ae121aef8 /usr.bin/make/lst.lib/lstEnQueue.c
parent1054102ac1e5da024bb0316738d7cef7f996d28b (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/lstEnQueue.c')
-rw-r--r--usr.bin/make/lst.lib/lstEnQueue.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/usr.bin/make/lst.lib/lstEnQueue.c b/usr.bin/make/lst.lib/lstEnQueue.c
index cabe4330941..2fa56654e00 100644
--- a/usr.bin/make/lst.lib/lstEnQueue.c
+++ b/usr.bin/make/lst.lib/lstEnQueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstEnQueue.c,v 1.4 1998/12/05 00:06:31 espie Exp $ */
+/* $OpenBSD: lstEnQueue.c,v 1.5 1999/12/18 21:58:08 espie Exp $ */
/* $NetBSD: lstEnQueue.c,v 1.5 1996/11/06 17:59:38 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstEnQueue.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstEnQueue.c,v 1.4 1998/12/05 00:06:31 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstEnQueue.c,v 1.5 1999/12/18 21:58:08 espie Exp $";
#endif
#endif /* not lint */
@@ -57,24 +57,20 @@ static char rcsid[] = "$OpenBSD: lstEnQueue.c,v 1.4 1998/12/05 00:06:31 espie Ex
* Lst_EnQueue --
* Add the datum to the tail of the given list.
*
- * Results:
- * SUCCESS or FAILURE as returned by Lst_Append.
- *
* Side Effects:
* the lastPtr field is altered all the time and the firstPtr field
* will be altered if the list used to be empty.
*
*-----------------------------------------------------------------------
*/
-ReturnStatus
-Lst_EnQueue (l, d)
+void
+Lst_EnQueue(l, d)
Lst l;
ClientData d;
{
- if (LstValid (l) == FALSE) {
- return (FAILURE);
- }
+ if (LstValid(l) == FALSE)
+ return;
- return (Lst_Append (l, Lst_Last(l), d));
+ Lst_AtEnd(l, d);
}