summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2016-06-05 14:04:54 +0000
committerache <ache@FreeBSD.org>2016-06-05 14:04:54 +0000
commit199f28605719d4605c984cbf1df952f98c347a42 (patch)
treef5ac5869dd47bd8008a4439b64d2d7d1cc00e749 /lib
parent4ab0fcf85bd26f3eaf7a2f8693ed80e89d2be762 (diff)
downloadFreeBSD-src-199f28605719d4605c984cbf1df952f98c347a42.zip
FreeBSD-src-199f28605719d4605c984cbf1df952f98c347a42.tar.gz
Prepare for merge of r300956. One year old r288030 which fix prototypes
can't be merged without conflicts and require merging of other versions too and I don't want to go deep in that unmerged commits chain.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/rand.c7
1 files changed, 3 insertions, 4 deletions
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;
OpenPOWER on IntegriCloud