mirror of
https://github.com/libevent/libevent.git
synced 2025-01-20 05:02:55 +08:00
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:
commit
c3260cb974
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user