summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_getprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_getprio.c')
-rw-r--r--lib/libkse/thread/thr_getprio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkse/thread/thr_getprio.c b/lib/libkse/thread/thr_getprio.c
index 345f6ce..85bd261 100644
--- a/lib/libkse/thread/thr_getprio.c
+++ b/lib/libkse/thread/thr_getprio.c
@@ -57,7 +57,7 @@ pthread_getprio(pthread_t pthread)
/* Check if the thread pointer is NULL: */
if (pthread == NULL || pthread_p == NULL) {
/* Return an invalid argument error: */
- _thread_seterrno(_thread_run, EINVAL);
+ errno = EINVAL;
rval = -1;
} else {
/* Get the thread priority: */
OpenPOWER on IntegriCloud