summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/pxeboot/devopen.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-12-06 22:11:02 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-12-06 22:11:02 +0000
commita71c133efb7026da05ac2f7f41a6926bc5824a63 (patch)
treecaa8cefa19803b9912219905c5cc1f2499bb0544 /sys/arch/i386/stand/pxeboot/devopen.c
parent2131988aa3472105a2067d04c42151159fe3515d (diff)
- partially revert previous NENTS removal for arches which got busted.
Diffstat (limited to 'sys/arch/i386/stand/pxeboot/devopen.c')
-rw-r--r--sys/arch/i386/stand/pxeboot/devopen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/pxeboot/devopen.c b/sys/arch/i386/stand/pxeboot/devopen.c
index 9e4e51706a9..87d7f8a34b1 100644
--- a/sys/arch/i386/stand/pxeboot/devopen.c
+++ b/sys/arch/i386/stand/pxeboot/devopen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: devopen.c,v 1.5 2010/12/06 18:44:49 jasper Exp $ */
+/* $OpenBSD: devopen.c,v 1.6 2010/12/06 22:11:01 jasper Exp $ */
/*
* Copyright (c) 2004 Tom Cosgrove
@@ -45,13 +45,13 @@ const char bdevs[][4] = {
"wd", "", "fd", "", "sd", "st", "cd", "mcd",
"", "", "", "", "", "", "", "scd", "", "hd", ""
};
-const int nbdevs = nitems(bdevs);
+const int nbdevs = NENTS(bdevs);
const char cdevs[][4] = {
"cn", "", "", "", "", "", "", "",
"com", "", "", "", "pc"
};
-const int ncdevs = nitems(cdevs);
+const int ncdevs = NENTS(cdevs);
/* pass dev_t to the open routines */
int