aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/tst-robust8.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 09:48:10 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 09:51:57 +0200
commit0bdd79794526114313135c528969bb25be88c1a3 (patch)
tree4d5f90d73c8ff6e72fbbd08abf413fbfa3f682ab /sysdeps/pthread/tst-robust8.c
parent8a229ee93c17cf5d0aff9ba81a3acfa146f1dae0 (diff)
downloadglibc-0bdd79794526114313135c528969bb25be88c1a3.tar
glibc-0bdd79794526114313135c528969bb25be88c1a3.tar.gz
glibc-0bdd79794526114313135c528969bb25be88c1a3.tar.bz2
glibc-0bdd79794526114313135c528969bb25be88c1a3.zip
pthread: Use pthread_mutexattr_setrobust in tests
pthread_mutexattr_setrobust_np is about to be deprecated.
Diffstat (limited to 'sysdeps/pthread/tst-robust8.c')
-rw-r--r--sysdeps/pthread/tst-robust8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/tst-robust8.c b/sysdeps/pthread/tst-robust8.c
index 8f135cb516..4c8a20e916 100644
--- a/sysdeps/pthread/tst-robust8.c
+++ b/sysdeps/pthread/tst-robust8.c
@@ -163,7 +163,7 @@ do_test (void)
puts ("mutexattr_init failed");
return 0;
}
- if (pthread_mutexattr_setrobust_np (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
+ if (pthread_mutexattr_setrobust (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
{
puts ("mutexattr_setrobust failed");
return 1;