am7xxx: fix a clang warning
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 19:33:28 +0000 (21:33 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 22:14:47 +0000 (00:14 +0200)
commitdcfbdfd1956632885fbec1076408ccca18481fcf
tree261e7dcebb3cda6bce7e8ee1005963b3db458ada
parent48cd69fbef6ecdac1fe874ff5f2564e88dbc022b
am7xxx: fix a clang warning

  ../src/am7xxx.c:685:16: error: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
        [-Werror,-Wshorten-64-to-32]
          num_devices = libusb_get_device_list(ctx->usb_context, &list);
                    ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

libusb_get_device_list() returns ssize_t, just use it for the num_devices
variable.
src/am7xxx.c