Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/tmpfs yes, more C99 please (back out previous change).
details: https://anonhg.NetBSD.org/src/rev/1d5a43827a91
branches: trunk
changeset: 764865:1d5a43827a91
user: matt <matt%NetBSD.org@localhost>
date: Tue May 10 00:34:26 2011 +0000
description:
yes, more C99 please (back out previous change).
diffstat:
sys/fs/tmpfs/tmpfs_vnops.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 34b3dcbff870 -r 1d5a43827a91 sys/fs/tmpfs/tmpfs_vnops.c
--- a/sys/fs/tmpfs/tmpfs_vnops.c Tue May 10 00:33:58 2011 +0000
+++ b/sys/fs/tmpfs/tmpfs_vnops.c Tue May 10 00:34:26 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tmpfs_vnops.c,v 1.79 2011/05/08 00:03:35 christos Exp $ */
+/* $NetBSD: tmpfs_vnops.c,v 1.80 2011/05/10 00:34:26 matt 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.79 2011/05/08 00:03:35 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.80 2011/05/10 00:34:26 matt Exp $");
#include <sys/param.h>
#include <sys/dirent.h>
@@ -1466,8 +1466,7 @@
#if defined(DEBUG)
if (!error && pgs) {
- int i;
- for (i = 0; i < npages; i++) {
+ for (int i = 0; i < npages; i++) {
KASSERT(pgs[i] != NULL);
}
}
Home |
Main Index |
Thread Index |
Old Index