Make code conform to style(9), switch from BSD 3-clause to 2-clause license where possible, and consolidate duplicate 3-clause license into one.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
LGTM modulo nit below :-).
lib/libifconfig/libifconfig_internal.c | ||
---|---|---|
58–60 ↗ | (On Diff #19994) | Some of these lines are probably short enough to be combined. |
LGTM modulo new nit below :-).
lib/libifconfig/libifconfig.c | ||
---|---|---|
32–34 ↗ | (On Diff #20035) | This was correct before. Kernel include files (i.e. sys/*.h) come first; normally, include <sys/types.h> OR <sys/param.h>, but not both. <sys/types.h> includes <sys/cdefs.h>, and it is okay to depend on that. #include <sys/types.h> /* Non-local includes in angle brackets. */ For a network program, put the network include files next. (man 9 style) |
lib/libifconfig/libifconfig.h | ||
---|---|---|
98 ↗ | (On Diff #20039) | danfe@ provided a bunch of style(9) feedback in the previous review: https://reviews.freebsd.org/D7742#160685 You likely want to address that here as well. The return type should be on a separate line from the function name |
lib/libifconfig/libifconfig.h | ||
---|---|---|
98 ↗ | (On Diff #20039) |
Not for prototypes, which is what these are. Lots of examples in style(9) of single-line prototypes. |
lib/libifconfig/libifconfig.h | ||
---|---|---|
98 ↗ | (On Diff #20039) | I see a few examples involving header files in style(9), and prototypes seem to have the type on the same line. Is it safe to assume it's fine? Prototypes may have an extra space after a tab to enable function names to line up: static char *function(int _arg, const char *_arg2, struct foo *_arg3, struct bar *_arg4); static void usage(void); |
lib/libifconfig/libifconfig.h | ||
---|---|---|
98 ↗ | (On Diff #20039) | sorry, my mistake. I was just searching for the function name from the other review, and accidentally hit the prototype. I see that you have already fixed the actual function. Just wanted to make sure danfe@'s review comments didn't get lost |
lib/libifconfig/libifconfig.h | ||
---|---|---|
98 ↗ | (On Diff #20039) | Yeah, the prototypes are fine as-is. :-) |