Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Remove an accidental C99-ism in tools which nee...



details:   https://anonhg.NetBSD.org/src/rev/3b1db9e062ed
branches:  trunk
changeset: 330633:3b1db9e062ed
user:      justin <justin%NetBSD.org@localhost>
date:      Wed Jul 16 18:58:07 2014 +0000

description:
Remove an accidental C99-ism in tools which needs to be portable

diffstat:

 usr.bin/make/parse.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 89f893758f77 -r 3b1db9e062ed usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Wed Jul 16 18:36:46 2014 +0000
+++ b/usr.bin/make/parse.c      Wed Jul 16 18:58:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.196 2014/07/16 16:52:59 christos Exp $     */
+/*     $NetBSD: parse.c,v 1.197 2014/07/16 18:58:07 justin Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.196 2014/07/16 16:52:59 christos Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.197 2014/07/16 18:58:07 justin Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.196 2014/07/16 16:52:59 christos Exp $");
+__RCSID("$NetBSD: parse.c,v 1.197 2014/07/16 18:58:07 justin Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1963,6 +1963,7 @@
 static Boolean
 ParseMaybeSubMake(const char *cmd)
 {
+    size_t i;
     static struct {
        const char *name;
        size_t len;
@@ -1974,7 +1975,7 @@
        MKV("$(.MAKE)"),
        MKV("make"),
     };
-    for (size_t i = 0; i < __arraycount(vals); i++) {
+    for (i = 0; i < __arraycount(vals); i++) {
        char *ptr;
        if ((ptr = strstr(cmd, vals[i].name)) == NULL)
            continue;



Home | Main Index | Thread Index | Old Index