Fix rookie mistake - it's nitems(), not sizeof().

Reported by:	xtouqh_icloud.com
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2020-11-03 14:44:33 +00:00
parent 80ba361b2f
commit 939e5de8d4

View File

@ -27,7 +27,7 @@ linux_check_errtbl(void)
{
int i;
for (i = 1; i < sizeof(linux_errtbl); i++) {
for (i = 1; i < nitems(linux_errtbl); i++) {
KASSERT(linux_errtbl[i] != 0,
("%s: linux_errtbl[%d] == 0", __func__, i));
}