aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2021-03-02 01:57:36 +0000
committerEd Maste <emaste@FreeBSD.org>2021-03-02 02:09:59 +0000
commit7f72497ef756ff7d03d5560c2d1c1f92f73fcb52 (patch)
tree99a9e0d85a780283d90492e4c9a11e6f2a0fd098 /stand
parent8742817ba62ec604156c139727155d36f5fbad06 (diff)
downloadsrc-7f72497ef756ff7d03d5560c2d1c1f92f73fcb52.tar.gz
src-7f72497ef756ff7d03d5560c2d1c1f92f73fcb52.zip
libc: Use musl's optimized strchr and strchrnul
Parentheses added to HASZERO macro to avoid a GCC warning, and formatted with clang-format as we have adopted these and don't consider them 'contrib' code. Obtained from: musl (snapshot at commit 4d0a82170a25) Reviewed by: kib (libc integration), mjg (both earlier) MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17630
Diffstat (limited to 'stand')
-rw-r--r--stand/libsa/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/libsa/Makefile b/stand/libsa/Makefile
index 6fe916405fe4..838fefb260a8 100644
--- a/stand/libsa/Makefile
+++ b/stand/libsa/Makefile
@@ -29,7 +29,7 @@ SRCS+= ntoh.c
.PATH: ${LIBCSRC}/string
SRCS+= bcmp.c bcopy.c bzero.c ffs.c fls.c \
memccpy.c memchr.c memcmp.c memcpy.c memmove.c memset.c \
- strcat.c strchr.c strcmp.c strcpy.c stpcpy.c stpncpy.c \
+ strcat.c strchr.c strchrnul.c strcmp.c strcpy.c stpcpy.c stpncpy.c \
strcspn.c strlcat.c strlcpy.c strlen.c strncat.c strncmp.c strncpy.c \
strnlen.c strpbrk.c strrchr.c strsep.c strspn.c strstr.c strtok.c swab.c