diff options
author | 2015-09-11 11:52:55 +0000 | |
---|---|---|
committer | 2015-09-11 11:52:55 +0000 | |
commit | 044fc755ab8a41e1db871f293b6da2332fa31ad2 (patch) | |
tree | f22ab60e687a64ca89981e80933eaf6d92459330 /lib/libcrypto/crypto/getentropy_netbsd.c | |
parent | Avoid undefined behavior with isascii, cast its argument to unsigned char. (diff) | |
download | wireguard-openbsd-044fc755ab8a41e1db871f293b6da2332fa31ad2.tar.xz wireguard-openbsd-044fc755ab8a41e1db871f293b6da2332fa31ad2.zip |
unify files further
Diffstat (limited to 'lib/libcrypto/crypto/getentropy_netbsd.c')
-rw-r--r-- | lib/libcrypto/crypto/getentropy_netbsd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/crypto/getentropy_netbsd.c b/lib/libcrypto/crypto/getentropy_netbsd.c index a9710ef9233..2a73591f6e7 100644 --- a/lib/libcrypto/crypto/getentropy_netbsd.c +++ b/lib/libcrypto/crypto/getentropy_netbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getentropy_netbsd.c,v 1.1 2015/01/19 20:21:40 bcook Exp $ */ +/* $OpenBSD: getentropy_netbsd.c,v 1.2 2015/09/11 11:52:55 deraadt Exp $ */ /* * Copyright (c) 2014 Pawel Jakub Dawidek <pjd@FreeBSD.org> @@ -55,10 +55,10 @@ int getentropy(void *buf, size_t len) { if (len <= 256 && - getentropy_sysctl(buf, len) == len) { - return 0; + getentropy_sysctl(buf, len) == len) { + return (0); } errno = EIO; - return -1; + return (-1); } |