Protect bzero call against macro expansion

Shortly, we'll be moving to defining bzero and memset in terms of
__builting_memset. To do that, we can't have macro calls to bzero in
the fallback impelmentation of memset. Normal calls to bzero are fine.
All 4 architectures that use this have their own copies of bzero, so
there's no mutual recursion issue between memset and bcopy.
This commit is contained in:
Warner Losh 2018-05-24 23:20:10 +00:00
parent 920a817c78
commit c6f7141fc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334192

View File

@ -38,7 +38,7 @@ memset(void *b, int c, size_t len)
char *bb;
if (c == 0)
bzero(b, len);
(bzero)(b, len);
else
for (bb = (char *)b; len--; )
*bb++ = c;