From a7d40a88c91d105dcfe2f235bc84a522bfea3de2 Mon Sep 17 00:00:00 2001 From: pfg Date: Tue, 19 Apr 2016 23:48:27 +0000 Subject: 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 --- sys/fs/autofs/autofs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/autofs/autofs.c') diff --git a/sys/fs/autofs/autofs.c b/sys/fs/autofs/autofs.c index eee74ea..e339c80 100644 --- a/sys/fs/autofs/autofs.c +++ b/sys/fs/autofs/autofs.c @@ -354,7 +354,7 @@ autofs_set_sigmask(sigset_t *oldset) /* Remove the autofs set of signals from newset */ PROC_LOCK(curproc); mtx_lock(&curproc->p_sigacts->ps_mtx); - for (i = 0 ; i < sizeof(autofs_sig_set)/sizeof(int) ; i++) { + for (i = 0 ; i < nitems(autofs_sig_set); i++) { /* * But make sure we leave the ones already masked * by the process, i.e. remove the signal from the -- cgit v1.1