remove redundant declarations of __default_stacksize, __default_guardsize
authorRich Felker <dalias@aerifal.cx>
Tue, 18 Sep 2018 23:43:52 +0000 (19:43 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 18 Sep 2018 23:48:44 +0000 (19:48 -0400)
these are now declared in pthread_impl.h.

src/thread/pthread_attr_init.c
src/thread/pthread_create.c
src/thread/pthread_setattr_default_np.c

index 398990d19f214f7c78f18d09259270508740a944..463a8d20751256fccce53af7ae6925de7fc1e9ff 100644 (file)
@@ -1,8 +1,5 @@
 #include "pthread_impl.h"
 
-extern size_t __default_stacksize;
-extern size_t __default_guardsize;
-
 int pthread_attr_init(pthread_attr_t *a)
 {
        *a = (pthread_attr_t){0};
index 3293dcd543e58b740a6b5390622203c8adf62422..3da7db14f86b4f47723b188903cccfbdaa678e92 100644 (file)
@@ -162,8 +162,6 @@ static void *dummy_tsd[1] = { 0 };
 weak_alias(dummy_tsd, __pthread_tsd_main);
 
 volatile int __block_new_threads = 0;
-extern size_t __default_stacksize;
-extern size_t __default_guardsize;
 
 static FILE *volatile dummy_file = 0;
 weak_alias(dummy_file, __stdin_used);
index 88503e343a4f21faf8cc5da8eab63426a6f3dad4..256f06850e73cf6936af2523cb15f56444612190 100644 (file)
@@ -2,9 +2,6 @@
 #include "pthread_impl.h"
 #include <string.h>
 
-extern size_t __default_stacksize;
-extern size_t __default_guardsize;
-
 int pthread_setattr_default_np(const pthread_attr_t *attrp)
 {
        /* Reject anything in the attr object other than stack/guard size. */