diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-10 02:03:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-10 02:03:24 +0000 |
commit | c0a3f1ae96ef7e9f5d76e530a3fec5ff3456258a (patch) | |
tree | 7adae52052812fa4cf30ebed6fb2211e52407f4c /nuttx/sched/pthread_setschedprio.c | |
parent | 89bd2d728bdcd66ed7802bcfe361fd2e039b7f15 (diff) | |
download | px4-nuttx-c0a3f1ae96ef7e9f5d76e530a3fec5ff3456258a.tar.gz px4-nuttx-c0a3f1ae96ef7e9f5d76e530a3fec5ff3456258a.tar.bz2 px4-nuttx-c0a3f1ae96ef7e9f5d76e530a3fec5ff3456258a.zip |
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
Diffstat (limited to 'nuttx/sched/pthread_setschedprio.c')
-rw-r--r-- | nuttx/sched/pthread_setschedprio.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |