git: kernel/linker: Replace index()/rindex() with strchr()/strrchr()

Aaron LI aly at crater.dragonflybsd.org
Tue Feb 21 06:17:24 PST 2023


commit 4f79e0ef0c57dcb1be8a4ea19fb7a44bdb3bc704
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Feb 11 11:25:20 2023 +0800

    kernel/linker: Replace index()/rindex() with strchr()/strrchr()
    
    Introduce linker_basename() to reduce some duplicate code.
    
    Obtained-from: FreeBSD

Summary of changes:
 sys/kern/kern_linker.c | 48 ++++++++++++++++++++++++++----------------------
 1 file changed, 26 insertions(+), 22 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4f79e0ef0c57dcb1be8a4ea19fb7a44bdb3bc704


-- 
DragonFly BSD source repository


More information about the Commits mailing list