diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-12-06 18:44:50 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-12-06 18:44:50 +0000 |
commit | c35b9bdae7316474e01b5a2ba9dcf3631b975901 (patch) | |
tree | e2584f7866a69b7d5115c88c8916474d2dc7c70b /sys/arch/amd64/stand/pxeboot/devopen.c | |
parent | adc400522ede0d3382b10f47167d1652125bd6e6 (diff) |
- drop NENTS(), which was yet another copy of nitems().
no binary change
ok deraadt@
Diffstat (limited to 'sys/arch/amd64/stand/pxeboot/devopen.c')
-rw-r--r-- | sys/arch/amd64/stand/pxeboot/devopen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/stand/pxeboot/devopen.c b/sys/arch/amd64/stand/pxeboot/devopen.c index f6ba14639ac..9e4e51706a9 100644 --- a/sys/arch/amd64/stand/pxeboot/devopen.c +++ b/sys/arch/amd64/stand/pxeboot/devopen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: devopen.c,v 1.4 2007/07/27 17:48:01 tom Exp $ */ +/* $OpenBSD: devopen.c,v 1.5 2010/12/06 18:44:49 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 = NENTS(bdevs); +const int nbdevs = nitems(bdevs); const char cdevs[][4] = { "cn", "", "", "", "", "", "", "", "com", "", "", "", "pc" }; -const int ncdevs = NENTS(cdevs); +const int ncdevs = nitems(cdevs); /* pass dev_t to the open routines */ int |