fix pthread_attr_* implementations to match corrected prototypes
authorRich Felker <dalias@aerifal.cx>
Fri, 11 Mar 2011 14:51:14 +0000 (09:51 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 11 Mar 2011 14:51:14 +0000 (09:51 -0500)
src/thread/pthread_attr_getdetachstate.c
src/thread/pthread_attr_getguardsize.c
src/thread/pthread_attr_getscope.c
src/thread/pthread_attr_getstacksize.c

index de65c25fc7410897e49971231d86e2f547c8eb8b..47c4c023e676c259a8dddb135fcbbabf38076664 100644 (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;
index e6b9ee2ae06e417ddcb358b6540bd5372bc948bf..71133f808242467ce2a7486bb56a5f268abf59e3 100644 (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;
index 0cb224d3b69953e23cfdb48cebca4d422056f7bc..fc42a52f3c6619c6e6b2dfdceacfa9921445e11a 100644 (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;
 }
index 900dc9f53839bd112adcc78a1e9b6b210a8cf4fe..9575203d6d5f3992d96e1ab36c1da7537ec72b2e 100644 (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;