Skip to content

Commit cf99c82

Browse files
author
riastradh
committed
KNF
1 parent f88d656 commit cf99c82

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/libc/gen/arc4random.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: arc4random.c,v 1.30 2015/05/13 23:15:57 justin Exp $ */
1+
/* $NetBSD: arc4random.c,v 1.31 2016/03/25 22:13:23 riastradh Exp $ */
22

33
/*-
44
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
5252
*/
5353

5454
#include <sys/cdefs.h>
55-
__RCSID("$NetBSD: arc4random.c,v 1.30 2015/05/13 23:15:57 justin Exp $");
55+
__RCSID("$NetBSD: arc4random.c,v 1.31 2016/03/25 22:13:23 riastradh Exp $");
5656

5757
#include "namespace.h"
5858
#include "reentrant.h"
@@ -356,7 +356,8 @@ crypto_onetimestream(const void *seed, void *buf, size_t n)
356356
* = log_2 o + 8 i.
357357
*/
358358
__CTASSERT(CHAR_BIT * sizeof n <=
359-
(/*LINTED*/ilog2(crypto_core_OUTPUTBYTES) + 8 * crypto_core_INPUTBYTES));
359+
(/*LINTED*/ilog2(crypto_core_OUTPUTBYTES) +
360+
8*crypto_core_INPUTBYTES));
360361

361362
p8 = buf;
362363
p32 = (uint8_t *)roundup2((uintptr_t)p8, 4);
@@ -444,7 +445,8 @@ arc4random_prng_create(void)
444445
struct arc4random_prng *prng;
445446
const size_t size = roundup(sizeof(*prng), sysconf(_SC_PAGESIZE));
446447

447-
prng = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0);
448+
prng = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1,
449+
0);
448450
if (prng == MAP_FAILED)
449451
goto fail0;
450452
if (minherit(prng, size, MAP_INHERIT_ZERO) == -1)

0 commit comments

Comments
 (0)