summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand/cdboot/conf.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/amd64/stand/cdboot/conf.c
parent2131988aa3472105a2067d04c42151159fe3515d (diff)
- partially revert previous NENTS removal for arches which got busted.
Diffstat (limited to 'sys/arch/amd64/stand/cdboot/conf.c')
-rw-r--r--sys/arch/amd64/stand/cdboot/conf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/amd64/stand/cdboot/conf.c b/sys/arch/amd64/stand/cdboot/conf.c
index 7b50da459d1..418fd239c68 100644
--- a/sys/arch/amd64/stand/cdboot/conf.c
+++ b/sys/arch/amd64/stand/cdboot/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.16 2010/12/06 18:44:49 jasper Exp $ */
+/* $OpenBSD: conf.c,v 1.17 2010/12/06 22:11:01 jasper Exp $ */
/*
* Copyright (c) 2004 Tom Cosgrove
@@ -57,10 +57,10 @@ void (*amd64_probe2[])(void) = {
};
struct i386_boot_probes probe_list[] = {
- { "probing", amd64_probe1, nitems(amd64_probe1) },
- { "disk", amd64_probe2, nitems(amd64_probe2) }
+ { "probing", amd64_probe1, NENTS(amd64_probe1) },
+ { "disk", amd64_probe2, NENTS(amd64_probe2) }
};
-int nibprobes = nitems(probe_list);
+int nibprobes = NENTS(probe_list);
struct fs_ops file_system[] = {
{ cd9660_open, cd9660_close, cd9660_read, cd9660_write, cd9660_seek,
@@ -76,12 +76,12 @@ struct fs_ops file_system[] = {
fat_stat, fat_readdir },
#endif
};
-int nfsys = nitems(file_system);
+int nfsys = NENTS(file_system);
struct devsw devsw[] = {
{ "BIOS", biosstrategy, biosopen, biosclose, biosioctl },
};
-int ndevs = nitems(devsw);
+int ndevs = NENTS(devsw);
struct consdev constab[] = {
{ pc_probe, pc_init, pc_getc, pc_putc },