mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-17 23:54:35 +00:00
Using explicit_memset for the explicit_bzero compatibility layer.
Favoriting the native implementation in this case.
This commit is contained in:
parent
2e0beff67d
commit
1cb6ce98d6
@ -1805,6 +1805,7 @@ AC_CHECK_FUNCS([ \
|
||||
err \
|
||||
errx \
|
||||
explicit_bzero \
|
||||
explicit_memset \
|
||||
fchmod \
|
||||
fchmodat \
|
||||
fchown \
|
||||
|
@ -15,7 +15,15 @@
|
||||
|
||||
#ifndef HAVE_EXPLICIT_BZERO
|
||||
|
||||
#ifdef HAVE_MEMSET_S
|
||||
#ifdef HAVE_EXPLICIT_MEMSET
|
||||
|
||||
void
|
||||
explicit_bzero(void *p, size_t n)
|
||||
{
|
||||
(void)explicit_memset(p, 0, n);
|
||||
}
|
||||
|
||||
#elif defined(HAVE_MEMSET_S)
|
||||
|
||||
void
|
||||
explicit_bzero(void *p, size_t n)
|
||||
|
Loading…
Reference in New Issue
Block a user