diff options
Diffstat (limited to 'man3/pthread_create.3')
| -rw-r--r-- | man3/pthread_create.3 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/man3/pthread_create.3 b/man3/pthread_create.3 index 5ffb145869..9df8cfcda9 100644 --- a/man3/pthread_create.3 +++ b/man3/pthread_create.3 @@ -324,7 +324,6 @@ int main(int argc, char *argv[]) { int s, tnum, opt, num_threads; - struct thread_info *tinfo; pthread_attr_t attr; int stack_size; void *res; @@ -361,7 +360,7 @@ main(int argc, char *argv[]) /* Allocate memory for pthread_create() arguments */ - tinfo = calloc(num_threads, sizeof(*tinfo)); + struct thread_info *tinfo = calloc(num_threads, sizeof(*tinfo)); if (tinfo == NULL) handle_error("calloc"); |
