You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix minor issues/errors pointed out by Microsoft Studio in casting
iio_device_get_sample_size() and iio_device_get_sample_size_mask()
can return errors (as neg number), check and cast to unsigned (which is
how things are stored internally in the iio_buf structure).
errno is int, cast ssize_t (return type of many iio functions) when
setting it.
if functions are int, return an int (not a ssize_t)
change some internal usb functions to uint16_t since it matches up
with libusb better
The macro FD_ZERO() & FD_SET() emits warnings, so turn them off/on
around those calls.
Initilize var to NULL, to keep compiler happy
libusb_get_device_list() can return errors, so check for them.
handle locales with the safe verison of the string functions
(using _snprintf_s_l() rather than _snprintf_l())
Signed-off-by: Robin Getz <[email protected]>
0 commit comments