- 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()
- Fix printf() in tools/tools/ath/ath_ee_v4k_print/v4k.c
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
I'm mostly OK with this change. There was one change in tools/tools/ath/ath_ee_v4k_print/v4k.c (see above), that I don't understand.
Also, in a few files, you added an include for err.h. It's not a big deal, but any particular reason for that?
tools/tools/ath/ath_ee_v4k_print/v4k.c | ||
---|---|---|
131 ↗ | (On Diff #8090) | Why is this change needed? |
Please replace sys/types.h with sys/param.h if the source file already has sys/types.h #include'd in it
tools/tools/ath/ath_ee_v4k_print/v4k.c | ||
---|---|---|
131 ↗ | (On Diff #8090) | Agreed. This seems unnecessary |
tools/tools/crypto/hifnstats.c | ||
28–30 ↗ | (On Diff #8090) | Please sort. |
tools/tools/mwl/mwlstats/mwlstats.c | ||
37 ↗ | (On Diff #8090) |
|
I have added it where clang warns about "implicit declaration of function 'err'".
tools/tools/ath/ath_ee_v4k_print/v4k.c | ||
---|---|---|
132 ↗ | (On Diff #8230) | Size of this array was changed in r220589 (possibly, new fields from this revision should be added instead?) |
tools/tools/ath/ath_ee_v4k_print/v4k.c | ||
---|---|---|
132 ↗ | (On Diff #8230) | I'm OK with everything in this patch except for this part. Every other part of this patch is simple, and straightforward, while this For this part of the patch, can you submit it as a separate review? |
I committed everything in this patch except for the tools/tools/ath/ath_ee_v4k_print/v4k.c print changes.
Need someone who knows the code to comment on that.