diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-19 23:48:27 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-19 23:48:27 +0000 |
| commit | 02abd40029ea0d6cbb65cbb70816266541fb45a2 (patch) | |
| tree | de102c840aded1a3b5511745802f9d6ef74aeb6f /sys/fs | |
| parent | 2464bbf05ac2af46a81e4dbb3c2a7e4a62bb35f1 (diff) | |
Notes
Diffstat (limited to 'sys/fs')
| -rw-r--r-- | sys/fs/autofs/autofs.c | 2 | ||||
| -rw-r--r-- | sys/fs/nfs/nfs_commonkrpc.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/autofs/autofs.c b/sys/fs/autofs/autofs.c index eee74ea43fa0..e339c80c196c 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 diff --git a/sys/fs/nfs/nfs_commonkrpc.c b/sys/fs/nfs/nfs_commonkrpc.c index c1d50f4cfb2d..1a50ec8685fa 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 |
