]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Fix arc4random() and arc4random_stir() prototypes
authorCallum Davies <calrogman@gmail.com>
Sun, 10 Aug 2014 11:34:44 +0000 (12:34 +0100)
committerGuillem Jover <guillem@hadrons.org>
Tue, 12 Aug 2014 10:18:13 +0000 (12:18 +0200)
These two functions accept no arguments.  The prototypes should reflect
this.  This change lets the compiler warn about certain (admittedly
silly) mistakes.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
include/bsd/stdlib.h

index 22a6dc871bed39b2fa8d6490ffa9dd96216c19b7..0fcb454302a08a4b70e0a9629d0cb0d7dc72b2be 100644 (file)
@@ -47,8 +47,8 @@
 #include <stdint.h>
 
 __BEGIN_DECLS
-u_int32_t arc4random();
-void arc4random_stir();
+u_int32_t arc4random(void);
+void arc4random_stir(void);
 void arc4random_addrandom(u_char *dat, int datlen);
 void arc4random_buf(void *_buf, size_t n);
 u_int32_t arc4random_uniform(u_int32_t upper_bound);