about summary refs log tree commit diff
path: root/sysdeps/htl/bits/types/struct___pthread_once.h
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/types/struct___pthread_once.h
parent0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6 (diff)
downloadglibc-f827f0e473d0aab4b34a5618a2a2ed89ecb88347.tar.gz
glibc-f827f0e473d0aab4b34a5618a2a2ed89ecb88347.tar.xz
glibc-f827f0e473d0aab4b34a5618a2a2ed89ecb88347.zip
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/types/struct___pthread_once.h')
-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 31a0c0817b..a6b6db708c 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 */