From 815eb79cb8aeda7b35099acfb2e30a6d4989d2f8 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sun, 21 Apr 2002 11:02:36 +0000 Subject: [PATCH] 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. --- sys/dev/random/harvest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c index 1e2275d60744..b6f3fba52742 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)