diff options
author | Pete Batard <pbatard@gmail.com> | 2010-01-16 01:20:45 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-01-16 01:20:45 +0000 |
commit | a93cef02ffdb72500dab6037ca542d8ef24504e4 (patch) | |
tree | 9dac650138d65ce84c9c549ee8e9973b163c3a9b /examples | |
parent | 12e3f9c159f83365309ebf7885adbb0ae31a81d6 (diff) | |
download | libusb-a93cef02ffdb72500dab6037ca542d8ef24504e4.tar.gz |
r85: fixed MSVC warnings for x64 and reverted ssize_t to int for libusb_get_device_list change introduced with r52. Added definition on ssize_t in libusb.h for MSVC platforms.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/lsusb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/lsusb.c b/examples/lsusb.c index 43806de..317adf0 100644 --- a/examples/lsusb.c +++ b/examples/lsusb.c @@ -44,7 +44,8 @@ static void print_devs(libusb_device **devs) int main(void) { libusb_device **devs; - int r, cnt; + int r; + ssize_t cnt; r = libusb_init(NULL); if (r < 0) |