From patchwork Tue Jan 14 18:52:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 37380 Received: (qmail 121558 invoked by alias); 14 Jan 2020 19:03:13 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 121494 invoked by uid 89); 14 Jan 2020 19:03:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [PATCH 07/10] C11 threads: Fix thrd_t / pthread_t compatibility assertion Date: Tue, 14 Jan 2020 19:52:52 +0100 Message-Id: <20200114185255.25813-9-samuel.thibault@ens-lyon.org> In-Reply-To: <20200114185255.25813-1-samuel.thibault@ens-lyon.org> References: <20200114185255.25813-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 --- nptl/thrd_create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Adhemerval Zanella diff --git a/nptl/thrd_create.c b/nptl/thrd_create.c index 8474e234c9..fe08e22973 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 (*thr) == sizeof (pthread_t), + "sizeof (*thr) != sizeof (pthread_t)"); int err_code = __pthread_create_2_1 (thr, ATTR_C11_THREAD, (void* (*) (void*))func, arg);