Make sched_param parameter a const to comply with POSIX and SUSv2 specs.
This doesn't need to be applied to stable, because somehow -stable seems to have gotten it right. Reviewed by: jasone
This commit is contained in:
parent
893618352c
commit
3eadb69d1f
@ -298,7 +298,7 @@ int pthread_attr_getschedpolicy __P((const pthread_attr_t *, int *));
|
||||
int pthread_attr_getscope __P((const pthread_attr_t *, int *));
|
||||
int pthread_attr_setinheritsched __P((pthread_attr_t *, int));
|
||||
int pthread_attr_setschedparam __P((pthread_attr_t *,
|
||||
struct sched_param *));
|
||||
const struct sched_param *));
|
||||
int pthread_attr_setschedpolicy __P((pthread_attr_t *, int));
|
||||
int pthread_attr_setscope __P((pthread_attr_t *, int));
|
||||
int pthread_getschedparam __P((pthread_t pthread, int *,
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "pthread_private.h"
|
||||
|
||||
int
|
||||
pthread_attr_setschedparam(pthread_attr_t *attr, struct sched_param *param)
|
||||
pthread_attr_setschedparam(pthread_attr_t *attr, const struct sched_param *param)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "pthread_private.h"
|
||||
|
||||
int
|
||||
pthread_attr_setschedparam(pthread_attr_t *attr, struct sched_param *param)
|
||||
pthread_attr_setschedparam(pthread_attr_t *attr, const struct sched_param *param)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "pthread_private.h"
|
||||
|
||||
int
|
||||
pthread_attr_setschedparam(pthread_attr_t *attr, struct sched_param *param)
|
||||
pthread_attr_setschedparam(pthread_attr_t *attr, const struct sched_param *param)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user