From 33f81c5bb607e1b5ee0713e4f9e40e00dba8b841 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Tue, 7 Jun 2005 18:03:19 +0000 Subject: [PATCH] * random.c: Fix prototype of the fast random gatherer. Noted by Joe Vender. --- cipher/ChangeLog | 5 +++++ cipher/random.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cipher/ChangeLog b/cipher/ChangeLog index 826645c0b..b5732524d 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,3 +1,8 @@ +2005-06-07 David Shaw + + * random.c: Fix prototype of the fast random gatherer. Noted by + Joe Vender. + 2005-03-23 Werner Koch * rndw32.c (rndw32_gather_random_fast): While adding data use the diff --git a/cipher/random.c b/cipher/random.c index 0aa75cda4..4dd8d54c7 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -183,7 +183,7 @@ getfnc_gather_random (void))(void (*)(const void*, size_t, int), int, return NULL; } -static void (* +static int (* getfnc_fast_random_poll (void))( void (*)(const void*, size_t, int), int) { #ifdef USE_RNDW32 @@ -620,7 +620,7 @@ random_poll() void fast_random_poll() { - static void (*fnc)( void (*)(const void*, size_t, int), int) = NULL; + static int (*fnc)( void (*)(const void*, size_t, int), int) = NULL; static int initialized = 0; rndstats.fastpolls++;