hidapi
hidapi copied to clipboard
Explicitly cast result of malloc/calloc
Previously getting invalid conversion from 'void*' to 'hid_device* {aka hid_device_*}' type errors when trying to compile.
I came across this when using the downstream project seneye/SUDDriver and thought it best to apply upstream too. Note that I've only tested with that project.
Compiler was arm-poky-linux-gnueabi-g++ (GCC) 7.2.0.
Please consider making this PR at https://github.com/libusb/hidapi See #373