]> granicus.if.org Git - libevent/commitdiff
Don't use return since return type is void and build error occurs using clang
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Tue, 9 Jul 2013 02:50:33 +0000 (11:50 +0900)
committerMakoto Kato <m_kato@ga2.so-net.ne.jp>
Tue, 9 Jul 2013 02:50:33 +0000 (11:50 +0900)
evutil_rand.c

index 0073307f3120536e5706f850f1eb6cc11f17664b..039c74e37c70e07b81427fa006a02c7aa4ce2e61 100644 (file)
@@ -66,7 +66,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;
 
@@ -78,7 +78,7 @@ ev_arc4random_buf(void *buf, size_t n)
         * trickery.)
         */
        if (arc4random_buf != NULL) {
-               return arc4random_buf(buf, n);
+               arc4random_buf(buf, n);
        }
 #endif
        /* Make sure that we start out with b at a 4-byte alignment; plenty