about summary refs log tree commit diff
path: root/nptl/sem_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sem_init.c')
-rw-r--r--nptl/sem_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/sem_init.c b/nptl/sem_init.c
index b9b839cd64..87cadeb3af 100644
--- a/nptl/sem_init.c
+++ b/nptl/sem_init.c
@@ -27,6 +27,8 @@
 int
 __new_sem_init (sem_t *sem, int pshared, unsigned int value)
 {
+  ASSERT_PTHREAD_INTERNAL_SIZE (sem_t, struct new_sem);
+
   /* Parameter sanity check.  */
   if (__glibc_unlikely (value > SEM_VALUE_MAX))
     {
@@ -68,6 +70,8 @@ int
 attribute_compat_text_section
 __old_sem_init (sem_t *sem, int pshared, unsigned int value)
 {
+  ASSERT_PTHREAD_INTERNAL_SIZE (sem_t, struct new_sem);
+
   /* Parameter sanity check.  */
   if (__glibc_unlikely (value > SEM_VALUE_MAX))
     {