diff options
author | Nathan Hjelm <hjelmn@me.com> | 2021-12-31 10:21:38 -0700 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2023-01-20 11:04:14 +0100 |
commit | 3c33e499a051562a4bafaeb38a79089351c94381 (patch) | |
tree | b1108eef39580285610b501bef433fe42dfee46c /tests/stress_mt.c | |
parent | 6622f386f52807dac76c8a260c98aa02c311bc93 (diff) | |
download | libusb-3c33e499a051562a4bafaeb38a79089351c94381.tar.gz |
Update tests and example to use the new libusb_init_context() function
This commit updates all test and example code to use the newer
libusb_init_context() function instead of libusb_init().
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
[Tormod: Update umockdev.c as well]
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Diffstat (limited to 'tests/stress_mt.c')
-rw-r--r-- | tests/stress_mt.c | 2 |
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; |