diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-19 23:41:46 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-19 23:41:46 +0000 |
commit | ea24b0561f961d0a1bccb37b85a43f3c9a3e851a (patch) | |
tree | 5ed23465710a6035bce2fb4c78bd08f15ad4ff18 /sys/amd64/linux32/linux32_sysvec.c | |
parent | 73a1170a8c41cb848f17cc0a8839e9dcee3d126e (diff) | |
download | src-ea24b0561f961d0a1bccb37b85a43f3c9a3e851a.tar.gz src-ea24b0561f961d0a1bccb37b85a43f3c9a3e851a.zip |
X86: use our nitems() macro when it is avaliable through param.h.
No functional change, only trivial cases are done in this sweep,
Discussed in: freebsd-current
Notes
Notes:
svn path=/head/; revision=298308
Diffstat (limited to 'sys/amd64/linux32/linux32_sysvec.c')
-rw-r--r-- | sys/amd64/linux32/linux32_sysvec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index 4c4b5a191404..7bbc48e2ca6f 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -185,7 +185,7 @@ static int _bsd_to_linux_trapcode[] = { 15 /* 30 T_RESERVED */ }; #define bsd_to_linux_trapcode(code) \ - ((code)<sizeof(_bsd_to_linux_trapcode)/sizeof(*_bsd_to_linux_trapcode)? \ + ((code)<nitems(_bsd_to_linux_trapcode)? \ _bsd_to_linux_trapcode[(code)]: \ LINUX_T_UNKNOWN) |