94084c
commit 8b8a1d0b7375c547ae905917a03743ed6759c5bc
94084c
Author: Florian Weimer <fweimer@redhat.com>
94084c
Date:   Tue Sep 21 07:12:56 2021 +0200
94084c
94084c
    nptl: Fix type of pthread_mutexattr_getrobust_np, pthread_mutexattr_setrobust_np (bug 28036)
94084c
    
94084c
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
94084c
    Tested-by: Carlos O'Donell <carlos@redhat.com>
94084c
    (cherry picked from commit f3e664563361dc17530113b3205998d1f19dc4d9)
94084c
94084c
diff --git a/sysdeps/nptl/pthread.h b/sysdeps/nptl/pthread.h
94084c
index f1b7f2bdc6062c3e..43146e91c9d9579b 100644
94084c
--- a/sysdeps/nptl/pthread.h
94084c
+++ b/sysdeps/nptl/pthread.h
94084c
@@ -933,7 +933,7 @@ extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr,
94084c
 # ifdef __USE_GNU
94084c
 #  ifdef __REDIRECT_NTH
94084c
 extern int __REDIRECT_NTH (pthread_mutexattr_getrobust_np,
94084c
-			   (pthread_mutex_t *, int *),
94084c
+			   (pthread_mutexattr_t *, int *),
94084c
 			   pthread_mutexattr_getrobust) __nonnull ((1))
94084c
   __attribute_deprecated_msg__ ("\
94084c
 pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust");
94084c
@@ -949,7 +949,7 @@ extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,
94084c
 # ifdef __USE_GNU
94084c
 #  ifdef __REDIRECT_NTH
94084c
 extern int __REDIRECT_NTH (pthread_mutexattr_setrobust_np,
94084c
-			   (pthread_mutex_t *, int),
94084c
+			   (pthread_mutexattr_t *, int),
94084c
 			   pthread_mutexattr_setrobust) __nonnull ((1))
94084c
   __attribute_deprecated_msg__ ("\
94084c
 pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust");