Bug 1281596 - fix evutil_rand.c for clang/android builds; r=jld

clang apparently dislikes |return func(...)| in a function which returns
void.  Remove the return to make everybody happy.
This commit is contained in:
Nathan Froyd 2016-06-23 17:16:25 -04:00
Родитель 378278ea83
Коммит e0ab4c059f
2 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -59,7 +59,7 @@ 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);
#else
unsigned char *b = buf;

Просмотреть файл

@ -0,0 +1,14 @@
e6dd814 evutil_rand.c fixup for clang
diff --git a/ipc/chromium/src/third_party/libevent/evutil_rand.c b/ipc/chromium/src/third_party/libevent/evutil_rand.c
index 86c86b2..0c41765 100644
--- a/ipc/chromium/src/third_party/libevent/evutil_rand.c
+++ b/ipc/chromium/src/third_party/libevent/evutil_rand.c
@@ -59,7 +59,7 @@ 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);
#else
unsigned char *b = buf;