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:
Daniel Eischen 2000-01-10 04:14:08 +00:00
parent 893618352c
commit 3eadb69d1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55708
4 changed files with 4 additions and 4 deletions

View file

@ -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 *,

View file

@ -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;

View file

@ -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;

View file

@ -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;