summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-03-14 17:49:29 -0500
committerJoel Sherrill <joel@rtems.org>2018-03-15 09:25:45 -0500
commit948db3e4b7772d37f1eeeb28484282a435fdb30c (patch)
treec498b766173404455c3c42f562c3e23b2fe368c4
parent0bb86973336c7c4548f6d2e24878a88f0c556a77 (diff)
downloadcygnal-948db3e4b7772d37f1eeeb28484282a435fdb30c.tar.gz
cygnal-948db3e4b7772d37f1eeeb28484282a435fdb30c.tar.bz2
cygnal-948db3e4b7772d37f1eeeb28484282a435fdb30c.zip
Correct prototypes of pthread_mutex_getprioceiling() and pthread_setschedparam()
-rw-r--r--newlib/libc/include/pthread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index 3dee1c9ae..c9d24d6e0 100644
--- a/newlib/libc/include/pthread.h
+++ b/newlib/libc/include/pthread.h
@@ -156,7 +156,7 @@ int pthread_attr_getschedparam (const pthread_attr_t *__attr,
int pthread_getschedparam (pthread_t __pthread, int *__policy,
struct sched_param *__param);
int pthread_setschedparam (pthread_t __pthread, int __policy,
- struct sched_param *__param);
+ const struct sched_param *__param);
/* Set Scheduling Priority of a Thread */
int pthread_setschedprio (pthread_t thread, int prio);
@@ -190,7 +190,7 @@ int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t *__attr,
int pthread_mutex_setprioceiling (pthread_mutex_t *__mutex,
int __prioceiling, int *__old_ceiling);
-int pthread_mutex_getprioceiling (pthread_mutex_t *__mutex,
+int pthread_mutex_getprioceiling (const pthread_mutex_t *__restrict __mutex,
int *__prioceiling);
#endif /* _POSIX_THREAD_PRIO_PROTECT */