summaryrefslogtreecommitdiff
path: root/sys/arch/armish/stand
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-12-06 18:44:50 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-12-06 18:44:50 +0000
commitc35b9bdae7316474e01b5a2ba9dcf3631b975901 (patch)
treee2584f7866a69b7d5115c88c8916474d2dc7c70b /sys/arch/armish/stand
parentadc400522ede0d3382b10f47167d1652125bd6e6 (diff)
- drop NENTS(), which was yet another copy of nitems().
no binary change ok deraadt@
Diffstat (limited to 'sys/arch/armish/stand')
-rw-r--r--sys/arch/armish/stand/boot/conf.c6
-rw-r--r--sys/arch/armish/stand/boot/dev_armish.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/armish/stand/boot/conf.c b/sys/arch/armish/stand/boot/conf.c
index e597cc4c890..65f7f1aaf84 100644
--- a/sys/arch/armish/stand/boot/conf.c
+++ b/sys/arch/armish/stand/boot/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.4 2008/04/19 23:20:22 weingart Exp $ */
+/* $OpenBSD: conf.c,v 1.5 2010/12/06 18:44:49 jasper Exp $ */
/* $NetBSD: conf.c,v 1.4 2005/12/11 12:17:06 christos Exp $ */
/*
@@ -48,7 +48,7 @@ int debug = 0;
struct devsw devsw[] = {
{ "wd", wdstrategy, wdopen, wdclose, noioctl },
};
-int ndevs = NENTS(devsw);
+int ndevs = nitems(devsw);
/*
* Filesystem configuration
@@ -57,7 +57,7 @@ struct fs_ops file_system[] = {
{ ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek,
ufs_stat, ufs_readdir }
};
-int nfsys = NENTS(file_system);
+int nfsys = nitems(file_system);
/*
* Console configuration
diff --git a/sys/arch/armish/stand/boot/dev_armish.c b/sys/arch/armish/stand/boot/dev_armish.c
index 40e0293f07a..860b9ad2d62 100644
--- a/sys/arch/armish/stand/boot/dev_armish.c
+++ b/sys/arch/armish/stand/boot/dev_armish.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_armish.c,v 1.1 2006/07/29 15:01:49 kettenis Exp $ */
+/* $OpenBSD: dev_armish.c,v 1.2 2010/12/06 18:44:49 jasper Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis
@@ -25,7 +25,7 @@ const char cdevs[][4] = {
"cn", "", "", "", "", "", "", "",
"", "", "", "", "com"
};
-const int ncdevs = NENTS(cdevs);
+const int ncdevs = nitems(cdevs);
void
devboot(dev_t dev, char *p)