Date: Sun, 5 Jun 2016 14:04:55 +0000 (UTC) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r301444 - stable/10/lib/libc/stdlib Message-ID: <201606051404.u55E4t74017517@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606051404.u55E4t74017517>