From: Samuel Thibault Date: Mon, 13 Jan 2020 21:33:11 +0000 (+0000) Subject: C11 threads: Fix thrd_t / pthread_t compatibility assertion X-Git-Tag: glibc-2.32~728 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9abd9b4f3b1276d41a5cdf80f363d29d5864d68;p=thirdparty%2Fglibc.git C11 threads: Fix thrd_t / pthread_t compatibility assertion Reviewed-by: Adhemerval Zanella --- diff --git a/nptl/thrd_create.c b/nptl/thrd_create.c index 8474e234c9c..8423ffc8059 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);