Author: imp
Date: Thu May 24 23:20:10 2018
New Revision: 334192
URL: https://svnweb.freebsd.org/changeset/base/334192

Log:
  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.

Modified:
  head/sys/libkern/memset.c

Modified: head/sys/libkern/memset.c
==============================================================================
--- head/sys/libkern/memset.c   Thu May 24 23:11:25 2018        (r334191)
+++ head/sys/libkern/memset.c   Thu May 24 23:20:10 2018        (r334192)
@@ -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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to