summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_ule.c
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2015-02-27 15:05:20 +0000
committerandrew <andrew@FreeBSD.org>2015-02-27 15:05:20 +0000
commit078d1e1d3a0a58878835a27a8c7a885001722fc6 (patch)
tree999637407cdb131bb28bda3b9a5909f0fd8f57a3 /sys/kern/sched_ule.c
parentc1c12e9f5ed7c8e523dda420aacc691d005f1e31 (diff)
downloadFreeBSD-src-078d1e1d3a0a58878835a27a8c7a885001722fc6.zip
FreeBSD-src-078d1e1d3a0a58878835a27a8c7a885001722fc6.tar.gz
Fix sched_ule on sparc64, gcc complains sched_random is not a correct
prototype. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r--sys/kern/sched_ule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index d52eb48..04b4ec6 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -364,7 +364,7 @@ SDT_PROBE_DEFINE2(sched, , , surrender, "struct thread *",
* both positive and negative values from it by shifting the value
* right.
*/
-static int sched_random()
+static int sched_random(void)
{
int rnd, *rndptr;
rndptr = DPCPU_PTR(randomval);
OpenPOWER on IntegriCloud