Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/tmpfs no c99 please.



details:   https://anonhg.NetBSD.org/src/rev/dc6c03c830e0
branches:  trunk
changeset: 764837:dc6c03c830e0
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 08 00:03:35 2011 +0000

description:
no c99 please.

diffstat:

 sys/fs/tmpfs/tmpfs_vnops.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r c1191369da41 -r dc6c03c830e0 sys/fs/tmpfs/tmpfs_vnops.c
--- a/sys/fs/tmpfs/tmpfs_vnops.c        Sat May 07 23:59:13 2011 +0000
+++ b/sys/fs/tmpfs/tmpfs_vnops.c        Sun May 08 00:03:35 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tmpfs_vnops.c,v 1.78 2011/05/02 23:42:10 rmind Exp $   */
+/*     $NetBSD: tmpfs_vnops.c,v 1.79 2011/05/08 00:03:35 christos Exp $        */
 
 /*
  * Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.78 2011/05/02 23:42:10 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.79 2011/05/08 00:03:35 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/dirent.h>
@@ -1466,7 +1466,8 @@
 
 #if defined(DEBUG)
        if (!error && pgs) {
-               for (int i = 0; i < npages; i++) {
+               int i;
+               for (i = 0; i < npages; i++) {
                        KASSERT(pgs[i] != NULL);
                }
        }



Home | Main Index | Thread Index | Old Index