Skip to content

Commit a93798f

Browse files
committed
Squashed 'libusb/' changes from d52e355..5c64e52
5c64e52 sunos: Fix typos breaking build git-subtree-dir: libusb git-subtree-split: 5c64e52
1 parent 886418d commit a93798f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libusb/os/sunos_usb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,24 @@ static int sunos_get_link(di_devlink_t devlink, void *arg)
8686
const char *p;
8787
const char *q;
8888

89-
if (larg->path) {
89+
if (link_arg->path) {
9090
char *content = (char *)di_devlink_content(devlink);
9191
char *start = strstr(content, "/devices/");
9292
start += strlen("/devices");
9393
usbi_dbg(NULL, "%s", start);
9494

9595
/* line content must have minor node */
9696
if (start == NULL ||
97-
strncmp(start, larg->path, larg->len) != 0 ||
98-
start[larg->len] != ':')
97+
strncmp(start, link_arg->path, link_arg->len) != 0 ||
98+
start[link_arg->len] != ':')
9999
return (DI_WALK_CONTINUE);
100100
}
101101

102102
p = di_devlink_path(devlink);
103103
q = strrchr(p, '/');
104104
usbi_dbg(NULL, "%s", q);
105105

106-
*(larg->linkpp) = strndup(p, strlen(p) - strlen(q));
106+
*(link_arg->linkpp) = strndup(p, strlen(p) - strlen(q));
107107

108108
return (DI_WALK_TERMINATE);
109109
}

libusb/version_nano.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define LIBUSB_NANO 11882
1+
#define LIBUSB_NANO 11883

0 commit comments

Comments
 (0)