]> granicus.if.org Git - libevent/commitdiff
Merge remote-tracking branch 'origin/patches-2.0'
authorNick Mathewson <nickm@torproject.org>
Thu, 19 Sep 2013 14:48:27 +0000 (10:48 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 19 Sep 2013 14:48:27 +0000 (10:48 -0400)
1  2 
evutil_rand.c

diff --cc evutil_rand.c
index 7e7e042be0f0b9538116bca425567635e555b9f3,284341cf393240b0b766a7462c4e0a11e8cf77f3..046a14b07a9a637b2096cd95f129e38dd1196685
@@@ -85,10 -77,10 +85,11 @@@ 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);
 +                      arc4random_buf(buf, n);
 +                      return;
                }
        }
  #endif