aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/tst-key3.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/tst-key3.c')
-rw-r--r--sysdeps/pthread/tst-key3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/tst-key3.c b/sysdeps/pthread/tst-key3.c
index 5cf5dcf06f..b6cc8c49a3 100644
--- a/sysdeps/pthread/tst-key3.c
+++ b/sysdeps/pthread/tst-key3.c
@@ -59,7 +59,7 @@ tf (void *arg)
{
pthread_key_t *key = (pthread_key_t *) arg;
- if (pthread_setspecific (*key, (void *) -1l) != 0)
+ if (pthread_setspecific (*key, arg) != 0)
{
write_message ("setspecific failed\n");
_exit (1);