summaryrefslogtreecommitdiffstats
path: root/sys/dev/random
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-07-20 08:58:04 +0000
committermarkm <markm@FreeBSD.org>2001-07-20 08:58:04 +0000
commit730f703e6ae2e19d0b860653b68e2e2c58c66dbd (patch)
tree6ded6b0b83ab78034494dcdcf86effaacde3244b /sys/dev/random
parent8ee0a1a5cd3f47bd1783c7c9a9611789501bb985 (diff)
downloadFreeBSD-src-730f703e6ae2e19d0b860653b68e2e2c58c66dbd.zip
FreeBSD-src-730f703e6ae2e19d0b860653b68e2e2c58c66dbd.tar.gz
Fix type warnings.
PR: 29101
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/harvest.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c
index 4573232..e9ac7f9 100644
--- a/sys/dev/random/harvest.c
+++ b/sys/dev/random/harvest.c
@@ -50,12 +50,14 @@ struct harvest_select harvest = { 0, 0, 0 };
/* hold the address of the routine which is actually called if
* the randomdev is loaded
*/
-static void (*reap_func)(u_int64_t, void *, u_int, u_int, u_int, u_int) = NULL;
+static void (*reap_func)(u_int64_t, void *, u_int, u_int, u_int, enum esource)
+ = NULL;
static u_int (*read_func)(void *, u_int) = read_random_phony;
/* Initialise the harvester at load time */
void
-random_init_harvester(void (*reaper)(u_int64_t, void *, u_int, u_int, u_int, u_int), u_int (*reader)(void *, u_int))
+random_init_harvester(void (*reaper)(u_int64_t, void *, u_int, u_int, u_int,
+ enum esource), u_int (*reader)(void *, u_int))
{
reap_func = reaper;
read_func = reader;
@@ -75,10 +77,12 @@ random_deinit_harvester(void)
* the entropy device.
*/
void
-random_harvest(void *entropy, u_int count, u_int bits, u_int frac, u_int origin)
+random_harvest(void *entropy, u_int count, u_int bits, u_int frac,
+ enum esource origin)
{
if (reap_func)
- (*reap_func)(get_cyclecount(), entropy, count, bits, frac, origin);
+ (*reap_func)(get_cyclecount(), entropy, count, bits, frac,
+ origin);
}
/* Userland-visible version of read_random */
OpenPOWER on IntegriCloud