summaryrefslogtreecommitdiffstats
path: root/sys/dev/random
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-11-01 20:53:49 +0000
committeradrian <adrian@FreeBSD.org>2013-11-01 20:53:49 +0000
commit42bc4565bed9b35c5ce0004b8e9bcfab2bf04b8d (patch)
tree4b751065cfb2e75691de789fa9ad8e50b92e65d3 /sys/dev/random
parent1f9fa7964e291d4ca36371940a1378cb3829c2cf (diff)
downloadFreeBSD-src-42bc4565bed9b35c5ce0004b8e9bcfab2bf04b8d.zip
FreeBSD-src-42bc4565bed9b35c5ce0004b8e9bcfab2bf04b8d.tar.gz
Convert the random entropy harvesting code to use a const void * pointer
rather than just void *. Then, as part of this, convert a couple of mbuf m->m_data accesses to mtod(m, const void *). Reviewed by: markm Approved by: security-officer (delphij) Sponsored by: Netflix, Inc.
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/harvest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c
index 9c10e8d..9dbae84 100644
--- a/sys/dev/random/harvest.c
+++ b/sys/dev/random/harvest.c
@@ -86,7 +86,7 @@ randomdev_deinit_harvester(void)
* read which can be quite expensive.
*/
void
-random_harvest(void *entropy, u_int count, u_int bits, enum esource origin)
+random_harvest(const void *entropy, u_int count, u_int bits, enum esource origin)
{
if (reap_func)
(*reap_func)(get_cyclecount(), entropy, count, bits, origin);
OpenPOWER on IntegriCloud