diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2016-07-30 07:15:54 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2016-07-30 07:15:54 +0000 |
commit | f18e52f46e18b9036a60aa28fe6603962c885d3e (patch) | |
tree | 6f99430bbdb031bcf886cd0b4979bb960030985c /usr.bin | |
parent | d19ba08a1672cf3d710ed46e897690c16f0282c6 (diff) | |
download | src-f18e52f46e18b9036a60aa28fe6603962c885d3e.tar.gz src-f18e52f46e18b9036a60aa28fe6603962c885d3e.zip |
Use nitems() from sys/param.h.
MFC after: 2 weeks.
Sponsored by: gandi.net (BSD Day Taiwan)
Notes
Notes:
svn path=/head/; revision=303546
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/procstat/procstat_files.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/procstat/procstat_files.c b/usr.bin/procstat/procstat_files.c index ae7928dece7d..162669792af3 100644 --- a/usr.bin/procstat/procstat_files.c +++ b/usr.bin/procstat/procstat_files.c @@ -235,8 +235,7 @@ static struct cap_desc { { CAP_SOCK_CLIENT, "scl" }, { CAP_SOCK_SERVER, "ssr" }, }; -static const u_int cap_desc_count = sizeof(cap_desc) / - sizeof(cap_desc[0]); +static const u_int cap_desc_count = nitems(cap_desc); static u_int width_capability(cap_rights_t *rightsp) |