diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2024-02-14 22:52:57 +0100 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2024-02-14 23:08:10 +0100 |
commit | 5c64e52554daa0a7d297154cbc07fee039f8727f (patch) | |
tree | dca5bf8232119a3d6c7332e46e330de5b462c369 | |
parent | d52e355daa09f17ce64819122cb067b8a2ee0d4b (diff) | |
download | libusb-5c64e52554daa0a7d297154cbc07fee039f8727f.tar.gz |
sunos: Fix typos breaking build
Fixup of commit 66e63d6
Fixes #1465
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r-- | libusb/os/sunos_usb.c | 8 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libusb/os/sunos_usb.c b/libusb/os/sunos_usb.c index 6c8250c..d7be7de 100644 --- a/libusb/os/sunos_usb.c +++ b/libusb/os/sunos_usb.c @@ -86,7 +86,7 @@ static int sunos_get_link(di_devlink_t devlink, void *arg) const char *p; const char *q; - if (larg->path) { + if (link_arg->path) { char *content = (char *)di_devlink_content(devlink); char *start = strstr(content, "/devices/"); start += strlen("/devices"); @@ -94,8 +94,8 @@ static int sunos_get_link(di_devlink_t devlink, void *arg) /* line content must have minor node */ if (start == NULL || - strncmp(start, larg->path, larg->len) != 0 || - start[larg->len] != ':') + strncmp(start, link_arg->path, link_arg->len) != 0 || + start[link_arg->len] != ':') return (DI_WALK_CONTINUE); } @@ -103,7 +103,7 @@ static int sunos_get_link(di_devlink_t devlink, void *arg) q = strrchr(p, '/'); usbi_dbg(NULL, "%s", q); - *(larg->linkpp) = strndup(p, strlen(p) - strlen(q)); + *(link_arg->linkpp) = strndup(p, strlen(p) - strlen(q)); return (DI_WALK_TERMINATE); } diff --git a/libusb/version_nano.h b/libusb/version_nano.h index a6165f3..b22809b 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11882 +#define LIBUSB_NANO 11883 |