summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-01-16 01:20:45 +0000
committerPete Batard <pbatard@gmail.com>2010-01-16 01:20:45 +0000
commita93cef02ffdb72500dab6037ca542d8ef24504e4 (patch)
tree9dac650138d65ce84c9c549ee8e9973b163c3a9b /examples
parent12e3f9c159f83365309ebf7885adbb0ae31a81d6 (diff)
downloadlibusb-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.c3
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)