mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
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:
parent
920a817c78
commit
c6f7141fc0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334192
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user