Merge pull request #69 from makotokato/clang

Don't use return since return type is void and build error occurs using ...
This commit is contained in:
Nick Mathewson 2013-07-11 06:57:16 -07:00
commit c3260cb974

View File

@ -66,7 +66,8 @@ static void
ev_arc4random_buf(void *buf, size_t n)
{
#if defined(EVENT__HAVE_ARC4RANDOM_BUF) && !defined(__APPLE__)
return arc4random_buf(buf, n);
arc4random_buf(buf, n);
return;
#else
unsigned char *b = buf;
@ -78,7 +79,8 @@ ev_arc4random_buf(void *buf, size_t n)
* trickery.)
*/
if (arc4random_buf != NULL) {
return arc4random_buf(buf, n);
arc4random_buf(buf, n);
return;
}
#endif
/* Make sure that we start out with b at a 4-byte alignment; plenty