Fix another arc4random_buf-related warning

This commit is contained in:
Nick Mathewson 2013-09-19 10:48:09 -04:00
parent 5cb3865a40
commit e64a2b0b11

View File

@ -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);
}