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 /examples/xusb.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 'examples/xusb.c')
-rw-r--r-- | examples/xusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index 0fb5261..39a96fb 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -1153,7 +1153,7 @@ int main(int argc, char** argv) version = libusb_get_version(); printf("Using libusb v%d.%d.%d.%d\n\n", version->major, version->minor, version->micro, version->nano); - r = libusb_init(NULL); + r = libusb_init_context(/*ctx=*/NULL, /*options=*/NULL, /*num_options=*/0); if (r < 0) return r; |