Looks good, just some minor issues.
Patch set 2:Code-Review +1
5 comments:
_t is for standard libraries, _func maybe? Actually, as it's only
used in a single place, you don't need a typedef.
Patch Set #2, Line 84: void *
`const void *` to make that clear (unless the compiler won't let us)
Patch Set #2, Line 105: /* no need to NULL check handle; the conditional decrement makes it unnecessary */
No idea what this is supposed to mean. If you need to read the code
to understand the comment, commenting is futile.
no space after closing parenthesis
struct libusb_device_handle *usb_dev_get_by_vid_pid_serial(
struct libusb_context *usb_ctx, uint16_t vid, uint16_t pid, const char *serialno)
{
return get_by_vid_pid_filter(usb_ctx, vid, pid, filter_by_serial, (void *) serialno);
}
please group with the used filter function
To view, visit change 27444. To unsubscribe, or for help writing mail filters, visit settings.