git: net: Clean up ifa_ifwithnet() and ifaof_ifpforaddr()
Aaron LI
aly at crater.dragonflybsd.org
Wed Mar 20 08:33:50 PDT 2024
commit c008937ec10f607d3fd2430803ea63252756ff8b
Author: Aaron LI <aly at aaronly.me>
Date: Wed Mar 20 10:41:23 2024 +0800
net: Clean up ifa_ifwithnet() and ifaof_ifpforaddr()
- Add the static inline function ifa_match_withmask() to deduplicate the
address match code in both functions.
- Use NULL instead of 0 for pointers.
- Minor style cleanups.
Summary of changes:
sys/net/if.c | 70 ++++++++++++++++++++++++++++++------------------------------
1 file changed, 35 insertions(+), 35 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c008937ec10f607d3fd2430803ea63252756ff8b
--
DragonFly BSD source repository
More information about the Commits
mailing list