diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-19 23:48:27 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-19 23:48:27 +0000 |
commit | a7d40a88c91d105dcfe2f235bc84a522bfea3de2 (patch) | |
tree | de102c840aded1a3b5511745802f9d6ef74aeb6f /sys/fs/nfs/nfs_commonkrpc.c | |
parent | 99e9a53c8161ee4ae550ad18b73edd303a3724f4 (diff) | |
download | FreeBSD-src-a7d40a88c91d105dcfe2f235bc84a522bfea3de2.zip FreeBSD-src-a7d40a88c91d105dcfe2f235bc84a522bfea3de2.tar.gz |
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
Diffstat (limited to 'sys/fs/nfs/nfs_commonkrpc.c')
-rw-r--r-- | sys/fs/nfs/nfs_commonkrpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/nfs/nfs_commonkrpc.c b/sys/fs/nfs/nfs_commonkrpc.c index c1d50f4..1a50ec8 100644 --- a/sys/fs/nfs/nfs_commonkrpc.c +++ b/sys/fs/nfs/nfs_commonkrpc.c @@ -1053,7 +1053,7 @@ nfs_sig_pending(sigset_t set) { int i; - for (i = 0 ; i < sizeof(newnfs_sig_set)/sizeof(int) ; i++) + for (i = 0 ; i < nitems(newnfs_sig_set); i++) if (SIGISMEMBER(set, newnfs_sig_set[i])) return (1); return (0); @@ -1078,7 +1078,7 @@ newnfs_set_sigmask(struct thread *td, sigset_t *oldset) /* Remove the NFS set of signals from newset */ PROC_LOCK(p); mtx_lock(&p->p_sigacts->ps_mtx); - for (i = 0 ; i < sizeof(newnfs_sig_set)/sizeof(int) ; i++) { + for (i = 0 ; i < nitems(newnfs_sig_set); i++) { /* * But make sure we leave the ones already masked * by the process, ie. remove the signal from the |