git: net/radix: Add 'const' qualifier to input key/netmask

Aaron LI aly at crater.dragonflybsd.org
Fri Nov 10 01:58:14 PST 2023


commit 22dac581d5906f3a025d3aafc03647fe27a37147
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Jun 27 21:29:05 2023 +0800

    net/radix: Add 'const' qualifier to input key/netmask
    
    They're only referenced in the radix tree and wouldn't be modified, so
    add 'const' qualifier to make it clear.
    
    Adjust callers for this change accordingly.
    
    Referred to FreeBSD.

Summary of changes:
 sys/net/radix.c        | 51 +++++++++++++++++++++++++-------------------------
 sys/net/radix.h        | 38 ++++++++++++++++++++-----------------
 sys/net/route.c        | 13 +++++++------
 sys/net/route.h        |  4 ++--
 sys/netinet/in_rmx.c   |  4 ++--
 sys/netinet6/in6_rmx.c |  4 ++--
 6 files changed, 60 insertions(+), 54 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/22dac581d5906f3a025d3aafc03647fe27a37147


-- 
DragonFly BSD source repository


More information about the Commits mailing list