summaryrefslogtreecommitdiff
path: root/tests/stress_mt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stress_mt.c')
-rw-r--r--tests/stress_mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stress_mt.c b/tests/stress_mt.c
index 0299bfc..c59a5c7 100644
--- a/tests/stress_mt.c
+++ b/tests/stress_mt.c
@@ -16,7 +16,7 @@ static void *test_init_and_exit(void * arg)
libusb_context *ctx = NULL;
int r;
- r = libusb_init(&ctx);
+ r = libusb_init_context(&ctx, /*options=*/NULL, /*num_options=*/0);
if (r != LIBUSB_SUCCESS) {
printf("Failed to init libusb on iteration %d: %d", i, r);
return NULL;