aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-13 21:15:46 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-09 13:56:48 +0100
commite5ad0570682a663fe704f0a7bb1edb61fca11ecb (patch)
treeef2eff23cd9d361811bd77459aa63752b6ca5ff0 /nptl
parentf827f0e473d0aab4b34a5618a2a2ed89ecb88347 (diff)
downloadglibc-e5ad0570682a663fe704f0a7bb1edb61fca11ecb.zip
glibc-e5ad0570682a663fe704f0a7bb1edb61fca11ecb.tar.gz
glibc-e5ad0570682a663fe704f0a7bb1edb61fca11ecb.tar.bz2
nptl: Move nptl-specific types to separate header
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl')
-rw-r--r--nptl/call_once.c2
1 files changed, 1 insertions, 1 deletions
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);
}