summaryrefslogtreecommitdiff
path: root/sys/dev/rnd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-12-29 20:11:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-12-29 20:11:18 +0000
commit151359b213c5cf596e699e614b20720021e918bb (patch)
treeb2c88f49e8ffd1da5a01b7389432de023631b50d /sys/dev/rnd.c
parent62d9d2b9f3880814d039a1725414b3f4bd4447ed (diff)
knf
Diffstat (limited to 'sys/dev/rnd.c')
-rw-r--r--sys/dev/rnd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index f9986e27ebe..b93907b69a3 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.112 2010/12/29 18:28:16 deraadt Exp $ */
+/* $OpenBSD: rnd.c,v 1.113 2010/12/29 20:11:17 deraadt Exp $ */
/*
* rnd.c -- A strong random number generator
@@ -766,7 +766,7 @@ arc4random(void)
arc4maybeinit();
mtx_enter(&rndlock);
- rc4_getbytes(&arc4random_state, (u_char*)&ret, sizeof(ret));
+ rc4_getbytes(&arc4random_state, (u_char *)&ret, sizeof(ret));
rndstats.arc4_reads += sizeof(ret);
mtx_leave(&rndlock);
return ret;
@@ -789,7 +789,7 @@ arc4random_buf_large(void *buf, size_t n)
rc4_keysetup(&lctx, lbuf, sizeof(lbuf));
rc4_skip(&lctx, 256 * 4);
- rc4_getbytes(&lctx, (u_char*)buf, n);
+ rc4_getbytes(&lctx, (u_char *)buf, n);
bzero(lbuf, sizeof(lbuf));
bzero(&lctx, sizeof(lctx));
}
@@ -809,7 +809,7 @@ arc4random_buf(void *buf, size_t n)
}
mtx_enter(&rndlock);
- rc4_getbytes(&arc4random_state, (u_char*)buf, n);
+ rc4_getbytes(&arc4random_state, (u_char *)buf, n);
rndstats.arc4_reads += n;
mtx_leave(&rndlock);
}
@@ -904,7 +904,7 @@ randomread(dev_t dev, struct uio *uio, int ioflag)
while (!ret && uio->uio_resid > 0) {
int n = min(POOLBYTES, uio->uio_resid);
- switch(minor(dev)) {
+ switch (minor(dev)) {
case RND_RND:
ret = EIO; /* no chip -- error */
break;