overhaul SSP support to use a real canary
[oweals/musl.git] / src / thread / pthread_attr_getstacksize.c
index 40bbf1868ca1293bcdd5e9167aa286bec8cc5706..9575203d6d5f3992d96e1ab36c1da7537ec72b2e 100644 (file)
@@ -1,7 +1,7 @@
 #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->__stacksize + DEFAULT_STACK_SIZE;
+       *size = a->_a_stacksize + DEFAULT_STACK_SIZE;
        return 0;
 }