diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 21:33:11 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-02-09 13:56:48 +0100 |
commit | c9abd9b4f3b1276d41a5cdf80f363d29d5864d68 (patch) | |
tree | ede5cebc00d399b84e9637d6f0c999e99e55f3ed | |
parent | fc7283264d14f2f374feec691726277cbf450ca8 (diff) | |
download | glibc-c9abd9b4f3b1276d41a5cdf80f363d29d5864d68.tar glibc-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.c | 4 |
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); |