aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2021-03-03 22:36:18 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-03-03 23:06:32 +0100
commit9b4d747db7d9d7faf06d7978dba0eb8409e391a3 (patch)
tree06578347bafa41f58463761af6f920b171b2a0e9
parente82f7bbb11add8f23e026744aca908fcdfc78739 (diff)
downloadman-pages-9b4d747db7d9d7faf06d7978dba0eb8409e391a3.tar.gz
pthread_create.3: Fix undeclared variable error in example program
Reported-by: Paran Lee <p4ranlee@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/pthread_create.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/pthread_create.3 b/man3/pthread_create.3
index 01b602f66f..c28291457d 100644
--- a/man3/pthread_create.3
+++ b/man3/pthread_create.3
@@ -312,7 +312,7 @@ thread_start(void *arg)
char *uargv;
printf("Thread %d: top of stack near %p; argv_string=%s\en",
- tinfo\->thread_num, &p, tinfo\->argv_string);
+ tinfo\->thread_num, (void *) &tinfo, tinfo\->argv_string);
uargv = strdup(tinfo\->argv_string);
if (uargv == NULL)