about summary refs log tree commit diff
path: root/sysdeps/pthread/tst-robust9.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-robust9.c
parent8a229ee93c17cf5d0aff9ba81a3acfa146f1dae0 (diff)
downloadglibc-0bdd79794526114313135c528969bb25be88c1a3.tar.gz
glibc-0bdd79794526114313135c528969bb25be88c1a3.tar.xz
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-robust9.c')
-rw-r--r--sysdeps/pthread/tst-robust9.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/pthread/tst-robust9.c b/sysdeps/pthread/tst-robust9.c
index 532aebc4e9..ca24f24282 100644
--- a/sysdeps/pthread/tst-robust9.c
+++ b/sysdeps/pthread/tst-robust9.c
@@ -40,10 +40,10 @@ do_test (void)
   pthread_mutexattr_t ma;
 
   pthread_mutexattr_init (&ma);
-  err = pthread_mutexattr_setrobust_np (&ma, PTHREAD_MUTEX_ROBUST_NP);
+  err = pthread_mutexattr_setrobust (&ma, PTHREAD_MUTEX_ROBUST_NP);
   if (err)
     {
-      puts ("pthread_mutexattr_setrobust_np");
+      puts ("pthread_mutexattr_setrobust");
       return 1;
     }
 #ifdef ENABLE_PI