aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/random.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-06-07 18:03:19 +0000
committerDavid Shaw <[email protected]>2005-06-07 18:03:19 +0000
commit33f81c5bb607e1b5ee0713e4f9e40e00dba8b841 (patch)
treec08276f8fcf2cfb8c03987dc1eb17b33415194b8 /cipher/random.c
parent* ksutil.c (init_ks_options, parse_ks_options): Provide a default "/" (diff)
downloadgnupg-33f81c5bb607e1b5ee0713e4f9e40e00dba8b841.tar.gz
gnupg-33f81c5bb607e1b5ee0713e4f9e40e00dba8b841.zip
* random.c: Fix prototype of the fast random gatherer. Noted by Joe
Vender.
Diffstat (limited to '')
-rw-r--r--cipher/random.c4
1 files changed, 2 insertions, 2 deletions
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++;