mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Use nitems() from sys/param.h.
Reviewed by: np MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9945
This commit is contained in:
parent
793128cc2c
commit
5116725078
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315047
|
@ -1285,8 +1285,8 @@ kernel_capsicate(void)
|
|||
if (error != 0 && errno != ENOSYS)
|
||||
log_err(1, "cap_rights_limit");
|
||||
|
||||
error = cap_ioctls_limit(ctl_fd, cmds,
|
||||
sizeof(cmds) / sizeof(cmds[0]));
|
||||
error = cap_ioctls_limit(ctl_fd, cmds, nitems(cmds));
|
||||
|
||||
if (error != 0 && errno != ENOSYS)
|
||||
log_err(1, "cap_ioctls_limit");
|
||||
|
||||
|
|
Loading…
Reference in a new issue