summaryrefslogtreecommitdiff
path: root/usr.bin/make/compat.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-12-18 21:56:08 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-12-18 21:56:08 +0000
commit1054102ac1e5da024bb0316738d7cef7f996d28b (patch)
tree9c44d109f83a08cfeda71f32710eeff5a752bef9 /usr.bin/make/compat.c
parent55cf72374a6a0695c5f50929233d06baccf648f7 (diff)
Lst_DeQueue already checks for empty lists.
Diffstat (limited to 'usr.bin/make/compat.c')
-rw-r--r--usr.bin/make/compat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c
index fafea24a7cc..9f7fc77119b 100644
--- a/usr.bin/make/compat.c
+++ b/usr.bin/make/compat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compat.c,v 1.18 1999/12/18 21:53:32 espie Exp $ */
+/* $OpenBSD: compat.c,v 1.19 1999/12/18 21:56:07 espie Exp $ */
/* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */
/*
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
#else
-static char rcsid[] = "$OpenBSD: compat.c,v 1.18 1999/12/18 21:53:32 espie Exp $";
+static char rcsid[] = "$OpenBSD: compat.c,v 1.19 1999/12/18 21:56:07 espie Exp $";
#endif
#endif /* not lint */
@@ -711,8 +711,7 @@ Compat_Run(targs)
* could not be made due to errors.
*/
errors = 0;
- while (!Lst_IsEmpty (targs)) {
- gn = (GNode *) Lst_DeQueue (targs);
+ while ((gn = (GNode *)Lst_DeQueue(targs)) != NULL) {
CompatMake (gn, gn);
if (gn->made == UPTODATE) {