From e64a2b0b1129ade8af36515a1d87dbfb64256a49 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 19 Sep 2013 10:48:09 -0400 Subject: [PATCH] Fix another arc4random_buf-related warning --- evutil_rand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evutil_rand.c b/evutil_rand.c index 4df685ca..284341cf 100644 --- a/evutil_rand.c +++ b/evutil_rand.c @@ -77,7 +77,8 @@ ev_arc4random_buf(void *buf, size_t n) * trickery.) */ { - void (*tptr)() = (void*)arc4random_buf; + void (*tptr)(void *,size_t) = + (void (*)(void*,size_t))arc4random_buf; if (tptr != NULL) { return arc4random_buf(buf, n); } -- 2.40.0