summary refs log tree commit diff
path: root/compat/getentropy_netbsd.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-11-24 17:48:21 -0500
committerJune McEnroe <june@causal.agency>2020-11-24 17:48:21 -0500
commit8c64ad00a366095ac3d575f3605cb6e4659d6b81 (patch)
treeb3efc92ac09f8e5f493b1d062a4a51ff496a658d /compat/getentropy_netbsd.c
parentImport LibreSSL 3.2.2 (diff)
downloadlibretls-8c64ad00a366095ac3d575f3605cb6e4659d6b81.tar.gz
libretls-8c64ad00a366095ac3d575f3605cb6e4659d6b81.zip
Import LibreSSL 3.3.0
Diffstat (limited to '')
-rw-r--r--compat/getentropy_netbsd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/compat/getentropy_netbsd.c b/compat/getentropy_netbsd.c
index 45d68c9..5dc8959 100644
--- a/compat/getentropy_netbsd.c
+++ b/compat/getentropy_netbsd.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: getentropy_netbsd.c,v 1.3 2016/08/07 03:27:21 tb Exp $	*/
+/*	$OpenBSD: getentropy_netbsd.c,v 1.4 2020/10/12 22:08:33 deraadt Exp $	*/
 
 /*
  * Copyright (c) 2014 Pawel Jakub Dawidek <pjd@FreeBSD.org>
@@ -32,11 +32,9 @@
 static size_t
 getentropy_sysctl(u_char *buf, size_t size)
 {
-	int mib[2];
+	const int mib[2] = { CTL_KERN, KERN_ARND };
 	size_t len, done;
 
-	mib[0] = CTL_KERN;
-	mib[1] = KERN_ARND;
 	done = 0;
 
 	do {
23:25:36 -0500'>2022-02-19Remove unneeded includes in ui.cJune McEnroe 2022-02-19Reimplement tab completeJune McEnroe 2022-02-19Handle errors from editFn, etc.June McEnroe 2022-02-19Reimplement text macrosJune McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe 2022-02-18Implement new line editing "library"June McEnroe 2022-02-18Simplify cursor positioning in inputJune McEnroe 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe