From 5919af45fe0fdd5a425228bbc8383aa5b0798c61 Mon Sep 17 00:00:00 2001 From: rodrigc Date: Sun, 20 Sep 2015 20:24:28 +0000 Subject: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. --- lib/libc/stdlib/rand.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdlib/rand.c') diff --git a/lib/libc/stdlib/rand.c b/lib/libc/stdlib/rand.c index 4f4aa8d..b8871a2 100644 --- a/lib/libc/stdlib/rand.c +++ b/lib/libc/stdlib/rand.c @@ -111,14 +111,13 @@ static u_long next = #endif int -rand() +rand(void) { return (do_rand(&next)); } void -srand(seed) -u_int seed; +srand(u_int seed) { next = seed; #ifndef USE_WEAK_SEEDING @@ -136,7 +135,7 @@ u_int seed; * data from the kernel. */ void -sranddev() +sranddev(void) { int mib[2]; size_t len; -- cgit v1.1