aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-13 21:33:11 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-09 13:56:48 +0100
commitc9abd9b4f3b1276d41a5cdf80f363d29d5864d68 (patch)
treeede5cebc00d399b84e9637d6f0c999e99e55f3ed
parentC11 threads: do not require PTHREAD_DESTRUCTOR_ITERATIONS (diff)
downloadglibc-c9abd9b4f3b1276d41a5cdf80f363d29d5864d68.tar.gz
glibc-c9abd9b4f3b1276d41a5cdf80f363d29d5864d68.tar.bz2
glibc-c9abd9b4f3b1276d41a5cdf80f363d29d5864d68.zip
C11 threads: Fix thrd_t / pthread_t compatibility assertion
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-rw-r--r--nptl/thrd_create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/thrd_create.c b/nptl/thrd_create.c
index 8474e234c9..8423ffc805 100644
--- a/nptl/thrd_create.c
+++ b/nptl/thrd_create.c
@@ -21,8 +21,8 @@
int
thrd_create (thrd_t *thr, thrd_start_t func, void *arg)
{
- _Static_assert (sizeof (thr) == sizeof (pthread_t),
- "sizeof (thr) != sizeof (pthread_t)");
+ _Static_assert (sizeof (thrd_t) == sizeof (pthread_t),
+ "sizeof (thrd_t) != sizeof (pthread_t)");
int err_code = __pthread_create_2_1 (thr, ATTR_C11_THREAD,
(void* (*) (void*))func, arg);