From 6378351169696f9d446de93a3efd75b4b061fecc Mon Sep 17 00:00:00 2001 From: Callum Davies Date: Sun, 10 Aug 2014 12:34:44 +0100 Subject: [PATCH] Fix arc4random() and arc4random_stir() prototypes 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 --- include/bsd/stdlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h index 22a6dc8..0fcb454 100644 --- a/include/bsd/stdlib.h +++ b/include/bsd/stdlib.h @@ -47,8 +47,8 @@ #include __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);