Module Name: src
Committed By: tsutsui
Date: Mon Aug 24 13:03:44 UTC 2009
Modified Files:
src/sys/arch/atari/stand/bootxx: filesystem.c
src/sys/arch/atari/stand/bootxxx: filesystem.c
Log Message:
Use __arraycount().
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/atari/stand/bootxx/filesystem.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/atari/stand/bootxxx/filesystem.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/atari/stand/bootxx/filesystem.c
diff -u src/sys/arch/atari/stand/bootxx/filesystem.c:1.7 src/sys/arch/atari/stand/bootxx/filesystem.c:1.8
--- src/sys/arch/atari/stand/bootxx/filesystem.c:1.7 Sun Dec 11 12:17:00 2005
+++ src/sys/arch/atari/stand/bootxx/filesystem.c Mon Aug 24 13:03:43 2009
@@ -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);
Index: src/sys/arch/atari/stand/bootxxx/filesystem.c
diff -u src/sys/arch/atari/stand/bootxxx/filesystem.c:1.3 src/sys/arch/atari/stand/bootxxx/filesystem.c:1.4
--- src/sys/arch/atari/stand/bootxxx/filesystem.c:1.3 Sun Dec 11 12:17:00 2005
+++ src/sys/arch/atari/stand/bootxxx/filesystem.c Mon Aug 24 13:03:44 2009
@@ -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);