Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen KNF
details: https://anonhg.NetBSD.org/src/rev/58a0917fd73f
branches: trunk
changeset: 344381:58a0917fd73f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Mar 25 22:13:23 2016 +0000
description:
KNF
diffstat:
lib/libc/gen/arc4random.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 446dc01761a5 -r 58a0917fd73f lib/libc/gen/arc4random.c
--- a/lib/libc/gen/arc4random.c Fri Mar 25 14:58:53 2016 +0000
+++ b/lib/libc/gen/arc4random.c Fri Mar 25 22:13:23 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arc4random.c,v 1.30 2015/05/13 23:15:57 justin Exp $ */
+/* $NetBSD: arc4random.c,v 1.31 2016/03/25 22:13:23 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: arc4random.c,v 1.30 2015/05/13 23:15:57 justin Exp $");
+__RCSID("$NetBSD: arc4random.c,v 1.31 2016/03/25 22:13:23 riastradh Exp $");
#include "namespace.h"
#include "reentrant.h"
@@ -356,7 +356,8 @@
* = log_2 o + 8 i.
*/
__CTASSERT(CHAR_BIT * sizeof n <=
- (/*LINTED*/ilog2(crypto_core_OUTPUTBYTES) + 8 * crypto_core_INPUTBYTES));
+ (/*LINTED*/ilog2(crypto_core_OUTPUTBYTES) +
+ 8*crypto_core_INPUTBYTES));
p8 = buf;
p32 = (uint8_t *)roundup2((uintptr_t)p8, 4);
@@ -444,7 +445,8 @@
struct arc4random_prng *prng;
const size_t size = roundup(sizeof(*prng), sysconf(_SC_PAGESIZE));
- prng = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0);
+ prng = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1,
+ 0);
if (prng == MAP_FAILED)
goto fail0;
if (minherit(prng, size, MAP_INHERIT_ZERO) == -1)
Home |
Main Index |
Thread Index |
Old Index