aboutsummaryrefslogtreecommitdiff
path: root/sys/netsmb
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-19 23:48:27 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-19 23:48:27 +0000
commit02abd40029ea0d6cbb65cbb70816266541fb45a2 (patch)
treede102c840aded1a3b5511745802f9d6ef74aeb6f /sys/netsmb
parent2464bbf05ac2af46a81e4dbb3c2a7e4a62bb35f1 (diff)
downloadsrc-02abd40029ea0d6cbb65cbb70816266541fb45a2.tar.gz
src-02abd40029ea0d6cbb65cbb70816266541fb45a2.zip
kernel: use our nitems() macro when it is available through param.h.
No functional change, only trivial cases are done in this sweep, Discussed in: freebsd-current
Notes
Notes: svn path=/head/; revision=298310
Diffstat (limited to 'sys/netsmb')
-rw-r--r--sys/netsmb/smb_smb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netsmb/smb_smb.c b/sys/netsmb/smb_smb.c
index 6c732f9d4043..6d4f3898e1c3 100644
--- a/sys/netsmb/smb_smb.c
+++ b/sys/netsmb/smb_smb.c
@@ -68,7 +68,7 @@ static struct smb_dialect smb_dialects[] = {
{-1, NULL}
};
-#define SMB_DIALECT_MAX (sizeof(smb_dialects) / sizeof(struct smb_dialect) - 2)
+#define SMB_DIALECT_MAX (nitems(smb_dialects) - 2)
static u_int32_t
smb_vc_maxread(struct smb_vc *vcp)