summaryrefslogtreecommitdiff
path: root/src/thread/pthread_attr_getschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_attr_getschedparam.c')
-rw-r--r--src/thread/pthread_attr_getschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_attr_getschedparam.c b/src/thread/pthread_attr_getschedparam.c
index 5806bdf1..de5fbfe2 100644
--- a/src/thread/pthread_attr_getschedparam.c
+++ b/src/thread/pthread_attr_getschedparam.c
@@ -2,6 +2,6 @@
int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param)
{
- param->sched_priority = 0;
+ param->sched_priority = a->_a_prio;
return 0;
}