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