fix pthread_attr_* implementations to match corrected prototypes

This commit is contained in:
Rich Felker 2011-03-11 09:51:14 -05:00
parent cabf2ff349
commit 1659aa0e62
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#include "pthread_impl.h"
int pthread_attr_getdetachstate(pthread_attr_t *a, int *state)
int pthread_attr_getdetachstate(const pthread_attr_t *a, int *state)
{
*state = a->_a_detach;
return 0;

View File

@ -1,6 +1,6 @@
#include "pthread_impl.h"
int pthread_attr_getguardsize(pthread_attr_t *a, size_t *size)
int pthread_attr_getguardsize(const pthread_attr_t *a, size_t *size)
{
*size = a->_a_guardsize + DEFAULT_GUARD_SIZE;
return 0;

View File

@ -1,6 +1,6 @@
#include "pthread_impl.h"
int pthread_attr_getscope(pthread_attr_t *a, int *scope)
int pthread_attr_getscope(const pthread_attr_t *a, int *scope)
{
return 0;
}

View File

@ -1,6 +1,6 @@
#include "pthread_impl.h"
int pthread_attr_getstacksize(pthread_attr_t *a, size_t *size)
int pthread_attr_getstacksize(const pthread_attr_t *a, size_t *size)
{
*size = a->_a_stacksize + DEFAULT_STACK_SIZE;
return 0;