diff options
| author | Julian Elischer <julian@FreeBSD.org> | 1997-02-05 23:26:09 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 1997-02-05 23:26:09 +0000 |
| commit | c840cec7c5df4547d37d9ca025553099b834c1aa (patch) | |
| tree | b2e6d3017e236268263978b585f2150cd10b1689 /lib/libpthread/thread/thr_setprio.c | |
| parent | 3b576b3e5eac153732d10d222cc023a02adc3db7 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_setprio.c')
| -rw-r--r-- | lib/libpthread/thread/thr_setprio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_setprio.c b/lib/libpthread/thread/thr_setprio.c index e052ec34c5d2..4b49ed096afb 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: */ |
