From e5ad0570682a663fe704f0a7bb1edb61fca11ecb Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 13 Jan 2020 21:15:46 +0000 Subject: nptl: Move nptl-specific types to separate header Reviewed-by: Adhemerval Zanella --- nptl/call_once.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl') diff --git a/nptl/call_once.c b/nptl/call_once.c index 3f880a9..25e2964 100644 --- a/nptl/call_once.c +++ b/nptl/call_once.c @@ -27,5 +27,5 @@ call_once (once_flag *flag, void (*func)(void)) "sizeof (once_flag) != sizeof (pthread_once_t)"); _Static_assert (alignof (once_flag) == alignof (pthread_once_t), "alignof (once_flag) != alignof (pthread_once_t)"); - __pthread_once (&flag->__data, func); + __pthread_once ((pthread_once_t *) flag, func); } -- cgit v1.1