Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips We don't declare variables in for () stat...



details:   https://anonhg.NetBSD.org/src/rev/ac99b98ad79d
branches:  trunk
changeset: 750034:ac99b98ad79d
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Dec 14 12:53:18 2009 +0000

description:
We don't declare variables in for () statement.

diffstat:

 sys/arch/mips/mips/compat_13_machdep.c |   7 ++++---
 sys/arch/mips/mips/compat_16_machdep.c |  10 ++++++----
 2 files changed, 10 insertions(+), 7 deletions(-)

diffs (66 lines):

diff -r fafeca585c38 -r ac99b98ad79d sys/arch/mips/mips/compat_13_machdep.c
--- a/sys/arch/mips/mips/compat_13_machdep.c    Mon Dec 14 12:43:48 2009 +0000
+++ b/sys/arch/mips/mips/compat_13_machdep.c    Mon Dec 14 12:53:18 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_13_machdep.c,v 1.18 2009/12/14 00:46:05 matt Exp $      */
+/*     $NetBSD: compat_13_machdep.c,v 1.19 2009/12/14 12:53:18 uebayasi Exp $  */
 
 /*
  * Copyright 1996 The Board of Trustees of The Leland Stanford
@@ -15,7 +15,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: compat_13_machdep.c,v 1.18 2009/12/14 00:46:05 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_13_machdep.c,v 1.19 2009/12/14 12:53:18 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -84,7 +84,8 @@
        memcpy(&f->f_regs[1], &scp->sc_regs[1],
            sizeof(scp->sc_regs) - sizeof(scp->sc_regs[0]));
 #else
-       for (size_t i = 1; i < __arraycount(scp->sc_regs); i++)
+       size_t i;
+       for (i = 1; i < __arraycount(scp->sc_regs); i++)
                f->f_regs[i] = scp->sc_regs[i];
 #endif
        if (scp->sc_fpused) {
diff -r fafeca585c38 -r ac99b98ad79d sys/arch/mips/mips/compat_16_machdep.c
--- a/sys/arch/mips/mips/compat_16_machdep.c    Mon Dec 14 12:43:48 2009 +0000
+++ b/sys/arch/mips/mips/compat_16_machdep.c    Mon Dec 14 12:53:18 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_16_machdep.c,v 1.15 2009/12/14 00:46:05 matt Exp $      */
+/*     $NetBSD: compat_16_machdep.c,v 1.16 2009/12/14 12:53:18 uebayasi Exp $  */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
        
-__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.15 2009/12/14 00:46:05 matt Exp $"); 
+__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.16 2009/12/14 12:53:18 uebayasi Exp $"); 
 
 #ifdef _KERNEL_OPT
 #include "opt_cputype.h"
@@ -125,7 +125,8 @@
        memcpy(&ksc.sc_regs[1], &f->f_regs[1],
            sizeof(ksc.sc_regs) - sizeof(ksc.sc_regs[0]));
 #else
-       for (size_t i = 1; i < 32; i++)
+       size_t i;
+       for (i = 1; i < 32; i++)
                ksc.sc_regs[i] = f->f_regs[i];
 #endif
 
@@ -272,7 +273,8 @@
            sizeof(scp->sc_regs) - sizeof(scp->sc_regs[0]));
 
 #else
-       for (size_t i = 1; i < __arraycount(f->f_regs); i++)
+       size_t i;
+       for (i = 1; i < __arraycount(f->f_regs); i++)
                f->f_regs[i] = ksc.sc_regs[i];
 #endif
 #ifndef        SOFTFLOAT



Home | Main Index | Thread Index | Old Index