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: fix Targ_PrintType for pre-C99 compilers



details:   https://anonhg.NetBSD.org/src/rev/ab28298504b7
branches:  trunk
changeset: 985884:ab28298504b7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Sep 12 07:52:21 2021 +0000

description:
make: fix Targ_PrintType for pre-C99 compilers

diffstat:

 usr.bin/make/targ.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 9cfcbf9fa206 -r ab28298504b7 usr.bin/make/targ.c
--- a/usr.bin/make/targ.c       Sun Sep 12 07:50:45 2021 +0000
+++ b/usr.bin/make/targ.c       Sun Sep 12 07:52:21 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targ.c,v 1.169 2021/09/12 07:50:45 rillig Exp $        */
+/*     $NetBSD: targ.c,v 1.170 2021/09/12 07:52:21 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -113,7 +113,7 @@
 #include "dir.h"
 
 /*     "@(#)targ.c     8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: targ.c,v 1.169 2021/09/12 07:50:45 rillig Exp $");
+MAKE_RCSID("$NetBSD: targ.c,v 1.170 2021/09/12 07:52:21 rillig Exp $");
 
 /*
  * All target nodes that appeared on the left-hand side of one of the
@@ -439,8 +439,9 @@
                { OP_USE,       false,  "USE"           },
                { OP_OPTIONAL,  false,  "OPTIONAL"      },
        };
+       size_t i;
 
-       for (size_t i = 0; i < sizeof(names) / sizeof(names[0]); i++) {
+       for (i = 0; i < sizeof(names) / sizeof(names[0]); i++) {
                if (type & names[i].bit) {
                        if (names[i].internal)
                                DEBUG1(TARG, " .%s", names[i].name);



Home | Main Index | Thread Index | Old Index