summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_getprio.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
committerJulian Elischer <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
commitc840cec7c5df4547d37d9ca025553099b834c1aa (patch)
treeb2e6d3017e236268263978b585f2150cd10b1689 /lib/libpthread/thread/thr_getprio.c
parent3b576b3e5eac153732d10d222cc023a02adc3db7 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_getprio.c')
-rw-r--r--lib/libpthread/thread/thr_getprio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_getprio.c b/lib/libpthread/thread/thr_getprio.c
index 345f6ce2c888..85bd2616b735 100644
--- a/lib/libpthread/thread/thr_getprio.c
+++ b/lib/libpthread/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: */