git: mbuf(9): Various minor updates and style cleanups
Aaron LI
aly at crater.dragonflybsd.org
Wed Dec 27 23:44:04 PST 2023
commit e843874b75865b4a601e30a80e2c6da2a9cb4ee4
Author: Aaron LI <aly at aaronly.me>
Date: Thu Dec 28 13:17:14 2023 +0800
mbuf(9): Various minor updates and style cleanups
- Fix the comment that MSIZE/MCLBYTES is defined in <sys/param.h>
instead of <machine/param.h>; update the man page accordingly.
- Adjust some type casts in mtod() to be more consistent.
- Add the '__unused' attribute to actually unused parameters.
- Remove unused NCL_INIT/NMB_INIT macros from 'uipc_mbuf.c'.
- Use '__func__' instead of hard-coding function names.
- Fix several typos.
- Various style cleanups, mainly whitesapce adjustments.
Summary of changes:
share/man/man9/mbuf.9 | 4 +-
sys/kern/uipc_mbuf.c | 288 ++++++++++++++++++++++++--------------------------
sys/sys/mbuf.h | 110 ++++++++++---------
3 files changed, 195 insertions(+), 207 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e843874b75865b4a601e30a80e2c6da2a9cb4ee4
--
DragonFly BSD source repository
More information about the Commits
mailing list