From 0bdd79794526114313135c528969bb25be88c1a3 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 23 Apr 2021 09:48:10 +0200 Subject: pthread: Use pthread_mutexattr_setrobust in tests pthread_mutexattr_setrobust_np is about to be deprecated. --- sysdeps/pthread/tst-robust1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/pthread/tst-robust1.c') diff --git a/sysdeps/pthread/tst-robust1.c b/sysdeps/pthread/tst-robust1.c index 6342fcbbf7..4e1943de4f 100644 --- a/sysdeps/pthread/tst-robust1.c +++ b/sysdeps/pthread/tst-robust1.c @@ -91,7 +91,7 @@ do_test (void) puts ("mutexattr_init failed"); return 1; } - if (pthread_mutexattr_setrobust_np (&a, PTHREAD_MUTEX_ROBUST_NP) != 0) + if (pthread_mutexattr_setrobust (&a, PTHREAD_MUTEX_ROBUST_NP) != 0) { puts ("mutexattr_setrobust failed"); return 1; -- cgit 1.4.1