git: net/radix: Update parameter types to save callers from boring casts

Aaron LI aly at crater.dragonflybsd.org
Wed Nov 15 17:42:21 PST 2023


commit a3643718cb0becd9b9cd723df1ca0f388af38073
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Nov 15 16:20:21 2023 +0800

    net/radix: Update parameter types to save callers from boring casts
    
    Change the function parameters of key/address/mask from type
    'const char *' to 'const void *', so the callers don't need to do boring
    casts in passing them without causing any compilation warnings.
    
    In addition, change rn_key/rn_mask/rmu_mask to 'const u_char *' type as
    that makes more sense.
    
    Referred to FreeBSD.

Summary of changes:
 sys/net/radix.c | 240 ++++++++++++++++++++++++++++++++------------------------
 sys/net/radix.h |  40 +++++-----
 2 files changed, 158 insertions(+), 122 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a3643718cb0becd9b9cd723df1ca0f388af38073


-- 
DragonFly BSD source repository


More information about the Commits mailing list