diff options
author | David Shaw <[email protected]> | 2005-06-07 18:03:19 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-06-07 18:03:19 +0000 |
commit | 33f81c5bb607e1b5ee0713e4f9e40e00dba8b841 (patch) | |
tree | c08276f8fcf2cfb8c03987dc1eb17b33415194b8 | |
parent | * ksutil.c (init_ks_options, parse_ks_options): Provide a default "/" (diff) | |
download | gnupg-33f81c5bb607e1b5ee0713e4f9e40e00dba8b841.tar.gz gnupg-33f81c5bb607e1b5ee0713e4f9e40e00dba8b841.zip |
* random.c: Fix prototype of the fast random gatherer. Noted by Joe
Vender.
-rw-r--r-- | cipher/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <[email protected]> + + * random.c: Fix prototype of the fast random gatherer. Noted by + Joe Vender. + 2005-03-23 Werner Koch <[email protected]> * 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++; |