summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_setprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_setprio.c')
-rw-r--r--lib/libpthread/thread/thr_setprio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_setprio.c b/lib/libpthread/thread/thr_setprio.c
index e052ec3..4b49ed0 100644
--- a/lib/libpthread/thread/thr_setprio.c
+++ b/lib/libpthread/thread/thr_setprio.c
@@ -45,7 +45,7 @@ pthread_setprio(pthread_t pthread, int prio)
/* Check if the priority is invalid: */
if (prio < PTHREAD_MIN_PRIORITY || prio > PTHREAD_MAX_PRIORITY) {
/* Return an invalid argument error: */
- _thread_seterrno(_thread_run, EINVAL);
+ errno = EINVAL;
rval = -1;
} else {
/* Block signals: */
@@ -63,7 +63,7 @@ pthread_setprio(pthread_t pthread, int prio)
/* Check if the thread pointer is NULL: */
if (pthread == NULL || pthread_p == NULL) {
/* Return a 'search' error: */
- _thread_seterrno(_thread_run, ESRCH);
+ errno = ESRCH;
rval = -1;
} else {
/* Set the thread priority: */
OpenPOWER on IntegriCloud