Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/unbound/include use explicit_memset()



details:   https://anonhg.NetBSD.org/src/rev/7eefd5d04e97
branches:  trunk
changeset: 456739:7eefd5d04e97
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 26 02:42:00 2019 +0000

description:
use explicit_memset()
XXX: fix in autoconf

diffstat:

 external/bsd/unbound/include/config.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 0158fb6e2de2 -r 7eefd5d04e97 external/bsd/unbound/include/config.h
--- a/external/bsd/unbound/include/config.h     Sun May 26 01:44:34 2019 +0000
+++ b/external/bsd/unbound/include/config.h     Sun May 26 02:42:00 2019 +0000
@@ -1183,8 +1183,9 @@
 #endif
 
 #ifndef HAVE_EXPLICIT_BZERO
-#define explicit_bzero unbound_explicit_bzero
-void explicit_bzero(void* buf, size_t len);
+// #define explicit_bzero unbound_explicit_bzero
+// void explicit_bzero(void* buf, size_t len);
+#define explicit_bzero(a, b) explicit_memset(a, 0, b) 
 #endif
 
 #if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
@@ -1219,7 +1220,6 @@
 #  endif
 #endif /* HAVE_LIBRESSL */
 #ifndef HAVE_ARC4RANDOM
-void explicit_bzero(void* buf, size_t len);
 int getentropy(void* buf, size_t len);
 uint32_t arc4random(void);
 void arc4random_buf(void* buf, size_t n);



Home | Main Index | Thread Index | Old Index