]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 287297,296236: Cleanups to cxgbetool.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Nov 2016 18:16:00 +0000 (18:16 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Nov 2016 18:16:00 +0000 (18:16 +0000)
commit7e6013611d4d8ef423a4f61a019e49d9c7783370
tree1741f8e4e6fb1f047a7dbcfbb6bb374aa897d969
parenteeb786a9afd12d629b91f8f0a4481d3c7a88a288
MFC 287297,296236: Cleanups to cxgbetool.

287297:
- Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems()
- Add missing <err.h> for err() and <sys/sysctl.h> for sysctlbyname()
- NULL -> 0 for 5th parameter of sysctlbyname()

Note, the original commit touched several files under tools/tools, but
this commit only includes changes to cxgbetool.

296236:
Fix some whitespace nits in cxgbetool.c.  No functional change.

Sponsored by: Chelsio Communications

git-svn-id: svn://svn.freebsd.org/base/stable/10@308303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tools/tools/cxgbetool/cxgbetool.c