summaryrefslogtreecommitdiff
path: root/pthread_setschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_setschedparam.c')
-rw-r--r--pthread_setschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_setschedparam.c b/pthread_setschedparam.c
index 2e795b9..1a24f1f 100644
--- a/pthread_setschedparam.c
+++ b/pthread_setschedparam.c
@@ -47,7 +47,7 @@ pthread_setschedparam(pthread_t thread, int policy,
/* Validate the thread id. */
if (thread == NULL || thread->threadH == 0)
{
- return EINVAL;
+ return ESRCH;
}
/* Validate the scheduling policy. */