aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/htl/bits
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-13 21:17:44 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-09 13:56:48 +0100
commitf827f0e473d0aab4b34a5618a2a2ed89ecb88347 (patch)
treec70b50c1f192b7f07565d2ccc8b4ffc32e6747cf /sysdeps/htl/bits
parent0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6 (diff)
downloadglibc-f827f0e473d0aab4b34a5618a2a2ed89ecb88347.zip
glibc-f827f0e473d0aab4b34a5618a2a2ed89ecb88347.tar.gz
glibc-f827f0e473d0aab4b34a5618a2a2ed89ecb88347.tar.bz2
htl: Make __PTHREAD_ONCE_INIT more flexible
by moving its (struct __pthread_once) cast into PTHREAD_ONCE_INIT. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/htl/bits')
-rw-r--r--sysdeps/htl/bits/types/struct___pthread_once.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/htl/bits/types/struct___pthread_once.h b/sysdeps/htl/bits/types/struct___pthread_once.h
index 31a0c08..a6b6db7 100644
--- a/sysdeps/htl/bits/types/struct___pthread_once.h
+++ b/sysdeps/htl/bits/types/struct___pthread_once.h
@@ -28,6 +28,6 @@ struct __pthread_once
};
#define __PTHREAD_ONCE_INIT \
- (struct __pthread_once) { 0, __PTHREAD_SPIN_LOCK_INITIALIZER }
+ 0, __PTHREAD_SPIN_LOCK_INITIALIZER
#endif /* bits/types/struct___pthread_once.h */