commit | 5741bfe01a2481b8c3830c80edc3637bf62a7e16 | [log] [tgz] |
---|---|---|
author | Daniel Drake <dsd@gentoo.org> | Fri May 09 14:36:14 2008 +0100 |
committer | Daniel Drake <dsd@gentoo.org> | Fri May 09 14:36:14 2008 +0100 |
tree | 9b959ee26d3fe7ae65121d13a76dbe40f534188f | |
parent | 45413101b78298e9332b22a34bc6bc159000ad8a [diff] [blame] |
libusb_get_device_list() can return negative error code
diff --git a/examples/lsusb.c b/examples/lsusb.c index 193b23a..509e0bd 100644 --- a/examples/lsusb.c +++ b/examples/lsusb.c
@@ -18,6 +18,7 @@ */ #include <stdio.h> +#include <sys/types.h> #include <libusb/libusb.h> @@ -39,7 +40,7 @@ { libusb_device **devs; int r; - size_t cnt; + ssize_t cnt; r = libusb_init(); if (r < 0)