summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand/pxeboot/conf.c
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/amd64/stand/pxeboot/conf.c
parentadc400522ede0d3382b10f47167d1652125bd6e6 (diff)
- drop NENTS(), which was yet another copy of nitems().
no binary change ok deraadt@
Diffstat (limited to 'sys/arch/amd64/stand/pxeboot/conf.c')
-rw-r--r--sys/arch/amd64/stand/pxeboot/conf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/amd64/stand/pxeboot/conf.c b/sys/arch/amd64/stand/pxeboot/conf.c
index f5e6e7a4957..24e62ad883a 100644
--- a/sys/arch/amd64/stand/pxeboot/conf.c
+++ b/sys/arch/amd64/stand/pxeboot/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.19 2010/08/11 14:18:52 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.20 2010/12/06 18:44:49 jasper Exp $ */
/*
* Copyright (c) 2004 Tom Cosgrove
@@ -65,17 +65,17 @@ void (*i386_probe3[])(void) = {
};
struct i386_boot_probes probe_list[] = {
- { "probing", i386_probe1, NENTS(i386_probe1) },
- { "disk", i386_probe2, NENTS(i386_probe2) },
- { "net", i386_probe3, NENTS(i386_probe3) },
+ { "probing", i386_probe1, nitems(i386_probe1) },
+ { "disk", i386_probe2, nitems(i386_probe2) },
+ { "net", i386_probe3, nitems(i386_probe3) },
};
-int nibprobes = NENTS(probe_list);
+int nibprobes = nitems(probe_list);
/* This next list must match file_system[]. */
char *fs_name[] = {
NULL, "tftp", "nfs"
};
-int nfsname = NENTS(fs_name);
+int nfsname = nitems(fs_name);
struct fs_ops file_system[] = {
{ ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek,
@@ -95,7 +95,7 @@ struct fs_ops file_system[] = {
null_stat, null_readdir }
#endif
};
-int nfsys = NENTS(file_system);
+int nfsys = nitems(file_system);
struct devsw devsw[] = {
#ifdef _TEST
@@ -104,7 +104,7 @@ struct devsw devsw[] = {
{ "BIOS", biosstrategy, biosopen, biosclose, biosioctl },
#endif
};
-int ndevs = NENTS(devsw);
+int ndevs = nitems(devsw);
struct devsw netsw[] = {
{ "net", net_strategy, net_open, net_close, net_ioctl },
@@ -112,7 +112,7 @@ struct devsw netsw[] = {
struct netif_driver *netif_drivers[] = {
};
-int n_netif_drivers = NENTS(netif_drivers);
+int n_netif_drivers = nitems(netif_drivers);
struct consdev constab[] = {
#ifdef _TEST