From c0a3f1ae96ef7e9f5d76e530a3fec5ff3456258a Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 10 Mar 2009 02:03:24 +0000 Subject: Make better use of new sched_settcpprio() API git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1588 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/pthread_setschedprio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nuttx/sched/pthread_setschedprio.c') diff --git a/nuttx/sched/pthread_setschedprio.c b/nuttx/sched/pthread_setschedprio.c index 6d3beb1de..fc4c2d612 100644 --- a/nuttx/sched/pthread_setschedprio.c +++ b/nuttx/sched/pthread_setschedprio.c @@ -104,7 +104,7 @@ int pthread_setschedprio(pthread_t thread, int prio) /* Set the errno to some non-zero value (failsafe) */ - *get_errno_ptr() = EINVAL; + errno = EINVAL; /* Call sched_setparam() to change the priority */ @@ -114,7 +114,7 @@ int pthread_setschedprio(pthread_t thread, int prio) { /* If sched_setparam() fails, return the errno */ - ret = *get_errno_ptr(); + ret = errno; } return ret; } -- cgit v1.2.3