summaryrefslogtreecommitdiff
path: root/libusb/os/netbsd_usb.c
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2017-07-05 13:44:30 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2017-07-06 14:26:46 -0700
commitcad7d0edd9e10160ccfe6ea80428165e7b6b354e (patch)
tree98c8023a5bc8b6b23f2360dcb3c7e311fcb1e1d2 /libusb/os/netbsd_usb.c
parentef8776ddea18ad5d2bf0a9d994c4cbfb6cc6f94d (diff)
downloadlibusb-cad7d0edd9e10160ccfe6ea80428165e7b6b354e.tar.gz
core: Kill usbi_os_backend structure definition madness
Prior to this commit, each backend provided its own uniquely named usbi_os_backend structure and a massive pile of #ifdefs assigned the global usbi_backend pointer to the correct one. This commit kills off all this code and instead has each backend provide the usbi_backend symbol directly. The linker can inform of any issues that might arise with symbols. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os/netbsd_usb.c')
-rw-r--r--libusb/os/netbsd_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/netbsd_usb.c b/libusb/os/netbsd_usb.c
index ad1ede7..26163c0 100644
--- a/libusb/os/netbsd_usb.c
+++ b/libusb/os/netbsd_usb.c
@@ -86,7 +86,7 @@ static int _sync_control_transfer(struct usbi_transfer *);
static int _sync_gen_transfer(struct usbi_transfer *);
static int _access_endpoint(struct libusb_transfer *);
-const struct usbi_os_backend netbsd_backend = {
+const struct usbi_os_backend usbi_backend = {
"Synchronous NetBSD backend",
0,
NULL, /* init() */