aboutsummaryrefslogtreecommitdiffstats
path: root/man3/pthread_create.3
diff options
context:
space:
mode:
authorAlex Colomar <alx.manpages@gmail.com>2022-09-11 00:57:38 +0200
committerAlex Colomar <alx.manpages@gmail.com>2022-09-12 17:18:55 +0200
commitd917c31dda3941c70eb72864dc5351144f981fbd (patch)
tree5d6530562c752105ab323ef85507a03fb5d49382 /man3/pthread_create.3
parent0f6f10d52afa01c97b8366e452c4e299ef86b276 (diff)
downloadman-pages-d917c31dda3941c70eb72864dc5351144f981fbd.tar.gz
Various pages: EXAMPLES: Fix alignment
In some cases, add braces, for readability. Link: <https://nginx.org/en/docs/dev/development_guide.html#code_style> Reported-by: checkpatch(1) Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man3/pthread_create.3')
-rw-r--r--man3/pthread_create.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/pthread_create.3 b/man3/pthread_create.3
index f551ed4f15..f222e5f35c 100644
--- a/man3/pthread_create.3
+++ b/man3/pthread_create.3
@@ -296,7 +296,7 @@ thread_start(void *arg)
char *uargv;
printf("Thread %d: top of stack near %p; argv_string=%s\en",
- tinfo\->thread_num, (void *) &tinfo, tinfo\->argv_string);
+ tinfo\->thread_num, (void *) &tinfo, tinfo\->argv_string);
uargv = strdup(tinfo\->argv_string);
if (uargv == NULL)
@@ -383,7 +383,7 @@ main(int argc, char *argv[])
handle_error_en(s, "pthread_join");
printf("Joined with thread %d; returned value was %s\en",
- tinfo[tnum].thread_num, (char *) res);
+ tinfo[tnum].thread_num, (char *) res);
free(res); /* Free memory allocated by thread */
}