Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/stand Use __arraycount().
details: https://anonhg.NetBSD.org/src/rev/cf10d13a5cac
branches: trunk
changeset: 746956:cf10d13a5cac
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Aug 24 13:03:43 2009 +0000
description:
Use __arraycount().
diffstat:
sys/arch/atari/stand/bootxx/filesystem.c | 4 ++--
sys/arch/atari/stand/bootxxx/filesystem.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r a2743bd35c14 -r cf10d13a5cac sys/arch/atari/stand/bootxx/filesystem.c
--- a/sys/arch/atari/stand/bootxx/filesystem.c Mon Aug 24 12:55:16 2009 +0000
+++ b/sys/arch/atari/stand/bootxx/filesystem.c Mon Aug 24 13:03:43 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: filesystem.c,v 1.7 2005/12/11 12:17:00 christos Exp $ */
+/* $NetBSD: filesystem.c,v 1.8 2009/08/24 13:03:43 tsutsui Exp $ */
/*
* Copyright (c) 1993 Philip A. Nelson.
@@ -38,4 +38,4 @@
FS_OPS(ufs),
};
-int nfsys = sizeof(file_system)/sizeof(struct fs_ops);
+int nfsys = __arraycount(file_system);
diff -r a2743bd35c14 -r cf10d13a5cac sys/arch/atari/stand/bootxxx/filesystem.c
--- a/sys/arch/atari/stand/bootxxx/filesystem.c Mon Aug 24 12:55:16 2009 +0000
+++ b/sys/arch/atari/stand/bootxxx/filesystem.c Mon Aug 24 13:03:43 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: filesystem.c,v 1.3 2005/12/11 12:17:00 christos Exp $ */
+/* $NetBSD: filesystem.c,v 1.4 2009/08/24 13:03:44 tsutsui Exp $ */
/*
* Copyright (c) 1993 Philip A. Nelson.
@@ -38,4 +38,4 @@
FS_OPS(ufs),
};
-int nfsys = sizeof(file_system) / sizeof(file_system[0]);
+int nfsys = __arraycount(file_system);
Home |
Main Index |
Thread Index |
Old Index