From 630b4bdd3d2ca967f0e1d4f438f7f1761461dd31 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 20 Feb 2007 22:39:56 +0000 Subject: Eliminating GCC dependencies git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@14 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/pthread_setschedparam.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'nuttx/sched/pthread_setschedparam.c') diff --git a/nuttx/sched/pthread_setschedparam.c b/nuttx/sched/pthread_setschedparam.c index 5d0f913c2..bb0435aa0 100644 --- a/nuttx/sched/pthread_setschedparam.c +++ b/nuttx/sched/pthread_setschedparam.c @@ -89,15 +89,9 @@ int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param) { - int ret; - - dbg("%s: thread ID=%d policy=%d param=0x%p\n", - __FUNCTION__, thread.pid, policy, param); + dbg("thread ID=%d policy=%d param=0x%p\n", thread, policy, param); /* Let sched_setscheduler do all of the work */ - ret = sched_setscheduler(thread.pid, policy, param); - - dbg("%s: Returning %d\n", __FUNCTION__, ret); - return ret; + return sched_setscheduler((pid_t)thread, policy, param); } -- cgit v1.2.3