Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): fix type of have_token in MakeStartJobs



details:   https://anonhg.NetBSD.org/src/rev/6b2739c8aaf7
branches:  trunk
changeset: 956836:6b2739c8aaf7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Nov 08 11:28:44 2020 +0000

description:
make(1): fix type of have_token in MakeStartJobs

diffstat:

 usr.bin/make/make.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (45 lines):

diff -r b9529258cf99 -r 6b2739c8aaf7 usr.bin/make/make.c
--- a/usr.bin/make/make.c       Sun Nov 08 11:25:26 2020 +0000
+++ b/usr.bin/make/make.c       Sun Nov 08 11:28:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make.c,v 1.201 2020/11/08 11:25:26 rillig Exp $        */
+/*     $NetBSD: make.c,v 1.202 2020/11/08 11:28:44 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -108,7 +108,7 @@
 #include "job.h"
 
 /*     "@(#)make.c     8.1 (Berkeley) 6/6/93"  */
-MAKE_RCSID("$NetBSD: make.c,v 1.201 2020/11/08 11:25:26 rillig Exp $");
+MAKE_RCSID("$NetBSD: make.c,v 1.202 2020/11/08 11:28:44 rillig Exp $");
 
 /* Sequence # to detect recursion. */
 static unsigned int checked = 1;
@@ -911,14 +911,14 @@
 static Boolean
 MakeStartJobs(void)
 {
-    GNode      *gn;
-    int                have_token = 0;
+    GNode *gn;
+    Boolean have_token = FALSE;
 
     while (!Lst_IsEmpty(toBeMade)) {
        /* Get token now to avoid cycling job-list when we only have 1 token */
        if (!have_token && !Job_TokenWithdraw())
            break;
-       have_token = 1;
+       have_token = TRUE;
 
        gn = Lst_Dequeue(toBeMade);
        DEBUG2(MAKE, "Examining %s%s...\n", gn->name, gn->cohort_num);
@@ -957,7 +957,7 @@
            }
            Make_DoAllVar(gn);
            Job_Make(gn);
-           have_token = 0;
+           have_token = FALSE;
        } else {
            DEBUG0(MAKE, "up-to-date\n");
            gn->made = UPTODATE;



Home | Main Index | Thread Index | Old Index