aboutsummaryrefslogtreecommitdiff
path: root/nptl
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 /nptl
parentfc7283264d14f2f374feec691726277cbf450ca8 (diff)
downloadglibc-c9abd9b4f3b1276d41a5cdf80f363d29d5864d68.zip
glibc-c9abd9b4f3b1276d41a5cdf80f363d29d5864d68.tar.gz
glibc-c9abd9b4f3b1276d41a5cdf80f363d29d5864d68.tar.bz2
C11 threads: Fix thrd_t / pthread_t compatibility assertion
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl')
-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 8474e23..8423ffc 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);