diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-03-11 09:51:14 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-03-11 09:51:14 -0500 |
commit | 1659aa0e62cf23f3007e01ad8ca7123d8e2b061e (patch) | |
tree | d52a694a6b913a62d47cc6c7421d2512d19e637c | |
parent | cabf2ff349183eca9ebc0a7b16d0223c193a013a (diff) | |
download | musl-1659aa0e62cf23f3007e01ad8ca7123d8e2b061e.tar.gz |
fix pthread_attr_* implementations to match corrected prototypes
-rw-r--r-- | src/thread/pthread_attr_getdetachstate.c | 2 | ||||
-rw-r--r-- | src/thread/pthread_attr_getguardsize.c | 2 | ||||
-rw-r--r-- | src/thread/pthread_attr_getscope.c | 2 | ||||
-rw-r--r-- | src/thread/pthread_attr_getstacksize.c | 2 |
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; |