diff options
author | markm <markm@FreeBSD.org> | 2002-04-21 11:02:36 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-04-21 11:02:36 +0000 |
commit | 6417a5c4b613c166986c9b4fb2939a80da18a1cc (patch) | |
tree | d26c227b84961629f1654cb3151b2f6cd47bdb03 /sys/dev/random/harvest.c | |
parent | 7dbe80a5b936d1961f26febdaaa52a930b4f1662 (diff) | |
download | FreeBSD-src-6417a5c4b613c166986c9b4fb2939a80da18a1cc.zip FreeBSD-src-6417a5c4b613c166986c9b4fb2939a80da18a1cc.tar.gz |
Fix really dumb braino of mine; cast a sizeof() to an int, which it is
being compared to, not size_t, which it already is.
Diffstat (limited to 'sys/dev/random/harvest.c')
-rw-r--r-- | sys/dev/random/harvest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c index 1e2275d..b6f3fba 100644 --- a/sys/dev/random/harvest.c +++ b/sys/dev/random/harvest.c @@ -110,7 +110,7 @@ read_random_phony(void *buf, int count) srandom((u_long)get_cyclecount()); /* Fill buf[] with random(9) output */ - for (i = 0; i < count; i+= (size_t)sizeof(u_long)) { + for (i = 0; i < count; i+= (int)sizeof(u_long)) { randval = random(); size = (count - i) < (int)sizeof(u_long) ? (count - i) |