From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13465 invoked by alias); 15 Mar 2018 14:26:05 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 13422 invoked by uid 9172); 15 Mar 2018 14:26:05 -0000 Date: Thu, 15 Mar 2018 14:26:00 -0000 Message-ID: <20180315142605.13419.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Joel Sherrill To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Correct prototypes of pthread_mutex_getprioceiling() and pthread_setschedparam() X-Act-Checkin: newlib-cygwin X-Git-Author: Joel Sherrill X-Git-Refname: refs/heads/master X-Git-Oldrev: 0bb86973336c7c4548f6d2e24878a88f0c556a77 X-Git-Newrev: 948db3e4b7772d37f1eeeb28484282a435fdb30c X-SW-Source: 2018-q1/txt/msg00062.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=948db3e4b7772d37f1eeeb28484282a435fdb30c commit 948db3e4b7772d37f1eeeb28484282a435fdb30c Author: Joel Sherrill Date: Wed Mar 14 17:49:29 2018 -0500 Correct prototypes of pthread_mutex_getprioceiling() and pthread_setschedparam() Diff: --- newlib/libc/include/pthread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h index 3dee1c9..c9d24d6 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 */