]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3: Use correct type (size_t...
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 11 Sep 2020 12:24:56 +0000 (14:24 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 11 Sep 2020 12:24:56 +0000 (14:24 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/pthread_attr_init.3
man3/pthread_create.3
man3/pthread_getattr_np.3

index 4f28d4a76815be70eff8cf4d5dea47b71753c619..ed7faaff0e98a1fb3a85b3d67a3ad715faea79cd 100644 (file)
@@ -266,7 +266,7 @@ main(int argc, char *argv[])
        and set attrp pointing to thread attributes object */
 
     if (argc > 1) {
-        int stack_size;
+        size_t stack_size;
         void *sp;
 
         attrp = &attr;
index c1c4c2ff51c709e148547f9d771acd898699af63..af75ff6a500dcc6212f5a8f268f78f875f54d885 100644 (file)
@@ -325,7 +325,7 @@ main(int argc, char *argv[])
 {
     int s, opt, num_threads;
     pthread_attr_t attr;
-    int stack_size;
+    size_t stack_size;
     void *res;
 
     /* The "\-s" option specifies a stack size for our threads */
index 01716b99d0a76b42d162ba89d51580457d75f386..be957607e0cc7fd060d1cfedbc96186278acab2f 100644 (file)
@@ -268,7 +268,7 @@ get_thread_attributes_from_cl(int argc, char *argv[],
                               pthread_attr_t *attrp)
 {
     int s, opt, allocate_stack;
-    long stack_size, guard_size;
+    size_t stack_size, guard_size;
     void *stack_addr;
     pthread_attr_t *ret_attrp = NULL;   /* Set to attrp if we initialize
                                            a thread attributes object */