summaryrefslogtreecommitdiff
path: root/source4/lib/util/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-01 15:17:18 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-01 15:17:18 +0200
commit7fd96c5b04177a412d9ef12b2f4620b587fe8ed6 (patch)
treeccdbbe3c7fbef5b738c0688fe3aff4d6e9550127 /source4/lib/util/tests
parentf41b9a9dde0dcad17e3a137537548f9bd9ab3901 (diff)
downloadsamba-7fd96c5b04177a412d9ef12b2f4620b587fe8ed6.tar.gz
samba-7fd96c5b04177a412d9ef12b2f4620b587fe8ed6.tar.bz2
samba-7fd96c5b04177a412d9ef12b2f4620b587fe8ed6.zip
Add userdata argument to reseed callback function.
(This used to be commit d4272bc6bcfcd71fa93edb25bb33d6458e8b33cd)
Diffstat (limited to 'source4/lib/util/tests')
-rw-r--r--source4/lib/util/tests/genrand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/util/tests/genrand.c b/source4/lib/util/tests/genrand.c
index 205a66352f..5fe229c089 100644
--- a/source4/lib/util/tests/genrand.c
+++ b/source4/lib/util/tests/genrand.c
@@ -22,14 +22,14 @@
#include "includes.h"
#include "torture/torture.h"
-static void dummy_reseed(int *d)
+static void dummy_reseed(void *userdata, int *d)
{
*d = 42;
}
static bool test_reseed_callback(struct torture_context *tctx)
{
- set_rand_reseed_callback(dummy_reseed);
+ set_rand_reseed_callback(dummy_reseed, NULL);
return true;
}