diff options
Diffstat (limited to 'gdb/testsuite/gdb.threads/schedlock.c')
-rw-r--r-- | gdb/testsuite/gdb.threads/schedlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.threads/schedlock.c b/gdb/testsuite/gdb.threads/schedlock.c index 2c4dc57..2bd3528 100644 --- a/gdb/testsuite/gdb.threads/schedlock.c +++ b/gdb/testsuite/gdb.threads/schedlock.c @@ -35,7 +35,7 @@ int main() { for (i = 1; i <= NUM; i++) { args[i] = 1; - res = pthread_create(&threads[i], + res = pthread_create(&threads[i - 1], NULL, thread_function, (void *) i); |