From 7d9746136e72bc71ea1366ea434c1dafb5211338 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 11 Sep 2020 14:24:56 +0200 Subject: [PATCH] pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3: Use correct type (size_t) for some variables Signed-off-by: Michael Kerrisk --- man3/pthread_attr_init.3 | 2 +- man3/pthread_create.3 | 2 +- man3/pthread_getattr_np.3 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man3/pthread_attr_init.3 b/man3/pthread_attr_init.3 index 4f28d4a76..ed7faaff0 100644 --- a/man3/pthread_attr_init.3 +++ b/man3/pthread_attr_init.3 @@ -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; diff --git a/man3/pthread_create.3 b/man3/pthread_create.3 index c1c4c2ff5..af75ff6a5 100644 --- a/man3/pthread_create.3 +++ b/man3/pthread_create.3 @@ -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 */ diff --git a/man3/pthread_getattr_np.3 b/man3/pthread_getattr_np.3 index 01716b99d..be957607e 100644 --- a/man3/pthread_getattr_np.3 +++ b/man3/pthread_getattr_np.3 @@ -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 */