git: mbuf(9): Use 'void *' in several public APIs to save casts in callers

Aaron LI aly at crater.dragonflybsd.org
Wed Dec 27 23:44:04 PST 2023


commit ef09a3ed3479755d29ff48a4e81912847e96139a
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Dec 28 11:31:06 2023 +0800

    mbuf(9): Use 'void *' in several public APIs to save casts in callers
    
    Update the following public APIs to use 'void *' or 'const void *'
    instead of 'caddr_t'/'c_caddr_t'/'char *', so that callers no longer
    need to do explicit casts:
    
    - m_append()
    - m_copyback()
    - m_copyback2()
    - m_copydata()
    - m_devget()
    - m_extadd()

Summary of changes:
 share/man/man9/mbuf.9 | 10 +++++-----
 sys/kern/uipc_mbuf.c  | 20 ++++++++++++--------
 sys/sys/mbuf.h        | 14 +++++++-------
 3 files changed, 24 insertions(+), 20 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list