diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-25 17:22:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-25 17:22:57 +0000 |
commit | 0017c71ced26ad8f4584ef0861022f031b1474eb (patch) | |
tree | 9d11cca911e1812f7c23ff30e46a1d6ae7c00ebc /lib/libcrypto/crypto/getentropy_freebsd.c | |
parent | 58457b126815e811a10a84f1f983a459c740c967 (diff) |
KNF
Diffstat (limited to 'lib/libcrypto/crypto/getentropy_freebsd.c')
-rw-r--r-- | lib/libcrypto/crypto/getentropy_freebsd.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libcrypto/crypto/getentropy_freebsd.c b/lib/libcrypto/crypto/getentropy_freebsd.c index ec760ae43dc..d5371b55787 100644 --- a/lib/libcrypto/crypto/getentropy_freebsd.c +++ b/lib/libcrypto/crypto/getentropy_freebsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getentropy_freebsd.c,v 1.1 2014/11/03 06:23:30 bcook Exp $ */ +/* $OpenBSD: getentropy_freebsd.c,v 1.2 2015/08/25 17:22:56 deraadt Exp $ */ /* * Copyright (c) 2014 Pawel Jakub Dawidek <pjd@FreeBSD.org> @@ -54,11 +54,9 @@ getentropy_sysctl(u_char *buf, size_t size) int getentropy(void *buf, size_t len) { - if (len <= 256 && - getentropy_sysctl(buf, len) == len) { - return 0; - } + if (len <= 256 && getentropy_sysctl(buf, len) == len) + return (0); errno = EIO; - return -1; + return (-1); } |