]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
C11 threads: Fix thrd_t / pthread_t compatibility assertion
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 13 Jan 2020 21:33:11 +0000 (21:33 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 9 Feb 2020 12:56:48 +0000 (13:56 +0100)
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
nptl/thrd_create.c

index 8474e234c9c258b435ce26b55dccdd9b2ddac875..8423ffc80593b75a147988c4575a45e1d9ddc64c 100644 (file)
@@ -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);