summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/hotplugtest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/hotplugtest.c b/examples/hotplugtest.c
index d2c1468..cc873f1 100644
--- a/examples/hotplugtest.c
+++ b/examples/hotplugtest.c
@@ -73,9 +73,9 @@ int main(int argc, char *argv[])
int product_id, vendor_id, class_id;
int rc;
- vendor_id = (argc > 1) ? strtol (argv[1], NULL, 0) : 0x045a;
- product_id = (argc > 2) ? strtol (argv[2], NULL, 0) : 0x5005;
- class_id = (argc > 3) ? strtol (argv[3], NULL, 0) : LIBUSB_HOTPLUG_MATCH_ANY;
+ vendor_id = (argc > 1) ? (int)strtol (argv[1], NULL, 0) : 0x045a;
+ product_id = (argc > 2) ? (int)strtol (argv[2], NULL, 0) : 0x5005;
+ class_id = (argc > 3) ? (int)strtol (argv[3], NULL, 0) : LIBUSB_HOTPLUG_MATCH_ANY;
rc = libusb_init (NULL);
if (rc < 0)