summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-1.c b/tests/test-1.c
index 86c7c97e..318fd6e9 100644
--- a/tests/test-1.c
+++ b/tests/test-1.c
@@ -27,7 +27,7 @@ main (int argc, char **argv)
for (i = 0; i < THREADS; i ++)
{
- mutex[i] = PTHREAD_MUTEX_INITIALIZER;
+ pthread_mutex_init (&mutex[i], 0);
pthread_mutex_lock (&mutex[i]);
err = pthread_create (&tid[i], 0, foo, &mutex[i]);
if (err)