pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3: Use correct type (size_t) for some variables

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-09-11 14:24:56 +02:00
parent 404990aeb9
commit 7d9746136e
3 changed files with 3 additions and 3 deletions

View 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;

View 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 */

View 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 */