summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-11-24 20:14:53 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-11-24 20:14:53 +0000
commitb30a4ef7142746f272e1ec1360616a14013939db (patch)
tree583ab4492e147e74d27f19453f9343b395ce5d91 /sys
parentedbb8187351a6912bc70146c3075c0a13caf4ba1 (diff)
use the shiny new nitems macro
Diffstat (limited to 'sys')
-rw-r--r--sys/nfs/nfs_subs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index 09678d56569..c05a624278c 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_subs.c,v 1.86 2008/08/25 09:26:17 pedro Exp $ */
+/* $OpenBSD: nfs_subs.c,v 1.87 2008/11/24 20:14:52 thib Exp $ */
/* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */
/*
@@ -1804,7 +1804,7 @@ nfsrv_errmap(nd, err)
} else
return (err & 0xffff);
}
- if (err <= sizeof(nfsrv_v2errmap)/sizeof(nfsrv_v2errmap[0]))
+ if (err <= nitems(nfsrv_v2errmap))
return ((int)nfsrv_v2errmap[err - 1]);
return (NFSERR_IO);
}