summaryrefslogtreecommitdiff
path: root/sys/compat/freebsd
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2009-12-15 20:26:22 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2009-12-15 20:26:22 +0000
commit65ae7942f03b048ffd5a59ab6cf91b8f54112034 (patch)
treee166fe92b9e777a8a020eb1d9562cc699116f0e8 /sys/compat/freebsd
parentab2b3daf8766001738f6d218a9e430fafb2fc8f7 (diff)
- instead of rolling a macro that is functional equivalent to nitems(),
just use nitems(). (this leaves NENTS() alone for now) ok deraadt@ krw@
Diffstat (limited to 'sys/compat/freebsd')
-rw-r--r--sys/compat/freebsd/freebsd_file.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/compat/freebsd/freebsd_file.c b/sys/compat/freebsd/freebsd_file.c
index b852c348cac..15168a89e54 100644
--- a/sys/compat/freebsd/freebsd_file.c
+++ b/sys/compat/freebsd/freebsd_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: freebsd_file.c,v 1.25 2006/06/25 15:01:53 sturm Exp $ */
+/* $OpenBSD: freebsd_file.c,v 1.26 2009/12/15 20:26:21 jasper Exp $ */
/* $NetBSD: freebsd_file.c,v 1.3 1996/05/03 17:03:09 christos Exp $ */
/*
@@ -53,8 +53,6 @@
#include <compat/freebsd/freebsd_syscallargs.h>
#include <compat/freebsd/freebsd_util.h>
-#define ARRAY_LENGTH(array) (sizeof(array)/sizeof(array[0]))
-
const char freebsd_emul_path[] = "/emul/freebsd";
static char * convert_from_freebsd_mount_type(int);
@@ -107,7 +105,7 @@ convert_from_freebsd_mount_type(type)
#endif
};
- if (type < 0 || type >= ARRAY_LENGTH(freebsd_mount_type))
+ if (type < 0 || type >= nitems(freebsd_mount_type))
return (NULL);
return (freebsd_mount_type[type]);
}