mirror of https://github.com/mkerrisk/man-pages
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:
parent
404990aeb9
commit
7d9746136e
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue