net/radix: Various minor improvements and cleanups
authorAaron LI <aly@aaronly.me>
Fri, 24 Nov 2023 06:05:06 +0000 (14:05 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 21 Dec 2023 02:19:13 +0000 (10:19 +0800)
commitc92088d5a08d6eec6a1918215257e8fca388f12d
treeebccbe3e82be53d3b066f7f8c7a0512edc503b1a
parent7d84b73d8a0b1c33d4dd0f1eb22954f58052401f
net/radix: Various minor improvements and cleanups

- Change 'rn_bit' and 'rm_bit' from type 'short' to 'int', for
  consistency with the other types.  This doesn't change the structure
  size because of the implicit padding.  However, the userland netstat(1)
  utility must be recompiled with the updated header.
- Rename variable 'b' to 'bit' for clarity.
- Adjust the parameter orders of rn_search_m() for consistency.
- Various style cleanups.
sys/net/radix.c
sys/net/radix.h