svn commit: r301444 - stable/10/lib/libc/stdlib
Andrey A. Chernov
ache at FreeBSD.org
Sun Jun 5 14:04:56 UTC 2016
Author: ache
Date: Sun Jun 5 14:04:54 2016
New Revision: 301444
URL: https://svnweb.freebsd.org/changeset/base/301444
Log:
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.
Modified:
stable/10/lib/libc/stdlib/rand.c
Modified: stable/10/lib/libc/stdlib/rand.c
==============================================================================
--- stable/10/lib/libc/stdlib/rand.c Sun Jun 5 13:39:31 2016 (r301443)
+++ stable/10/lib/libc/stdlib/rand.c Sun Jun 5 14:04:54 2016 (r301444)
@@ -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;
More information about the svn-src-all
mailing list