summaryrefslogtreecommitdiff
path: root/src/thread
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-11 09:51:14 -0500
committerRich Felker <dalias@aerifal.cx>2011-03-11 09:51:14 -0500
commit1659aa0e62cf23f3007e01ad8ca7123d8e2b061e (patch)
treed52a694a6b913a62d47cc6c7421d2512d19e637c /src/thread
parentcabf2ff349183eca9ebc0a7b16d0223c193a013a (diff)
downloadmusl-1659aa0e62cf23f3007e01ad8ca7123d8e2b061e.tar.gz
fix pthread_attr_* implementations to match corrected prototypes
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/pthread_attr_getdetachstate.c2
-rw-r--r--src/thread/pthread_attr_getguardsize.c2
-rw-r--r--src/thread/pthread_attr_getscope.c2
-rw-r--r--src/thread/pthread_attr_getstacksize.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/thread/pthread_attr_getdetachstate.c b/src/thread/pthread_attr_getdetachstate.c
index de65c25f..47c4c023 100644
--- a/src/thread/pthread_attr_getdetachstate.c
+++ b/src/thread/pthread_attr_getdetachstate.c
@@ -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;
diff --git a/src/thread/pthread_attr_getguardsize.c b/src/thread/pthread_attr_getguardsize.c
index e6b9ee2a..71133f80 100644
--- a/src/thread/pthread_attr_getguardsize.c
+++ b/src/thread/pthread_attr_getguardsize.c
@@ -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;
diff --git a/src/thread/pthread_attr_getscope.c b/src/thread/pthread_attr_getscope.c
index 0cb224d3..fc42a52f 100644
--- a/src/thread/pthread_attr_getscope.c
+++ b/src/thread/pthread_attr_getscope.c
@@ -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;
}
diff --git a/src/thread/pthread_attr_getstacksize.c b/src/thread/pthread_attr_getstacksize.c
index 900dc9f5..9575203d 100644
--- a/src/thread/pthread_attr_getstacksize.c
+++ b/src/thread/pthread_attr_getstacksize.c
@@ -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;