From 263ac3037db19c9d18a3eb0ab1956660e4b89449 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Tue, 25 Aug 2015 17:22:56 +0000 Subject: [PATCH] KNF --- src/lib/libcrypto/arc4random/getentropy_freebsd.c | 10 ++++------ src/lib/libcrypto/crypto/getentropy_freebsd.c | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/lib/libcrypto/arc4random/getentropy_freebsd.c b/src/lib/libcrypto/arc4random/getentropy_freebsd.c index ec760ae4..d5371b55 100644 --- a/src/lib/libcrypto/arc4random/getentropy_freebsd.c +++ b/src/lib/libcrypto/arc4random/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 @@ -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); } diff --git a/src/lib/libcrypto/crypto/getentropy_freebsd.c b/src/lib/libcrypto/crypto/getentropy_freebsd.c index ec760ae4..d5371b55 100644 --- a/src/lib/libcrypto/crypto/getentropy_freebsd.c +++ b/src/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 @@ -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); }