Fix sched_ule on sparc64, gcc complains sched_random is not a correct

prototype.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
andrew 2015-02-27 15:05:20 +00:00
parent c1c12e9f5e
commit 078d1e1d3a

View File

@ -364,7 +364,7 @@ SDT_PROBE_DEFINE2(sched, , , surrender, "struct thread *",
* both positive and negative values from it by shifting the value * both positive and negative values from it by shifting the value
* right. * right.
*/ */
static int sched_random() static int sched_random(void)
{ {
int rnd, *rndptr; int rnd, *rndptr;
rndptr = DPCPU_PTR(randomval); rndptr = DPCPU_PTR(randomval);