X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/860428c1b8ee26b327ec3c9fb8943fd17a49d755..6ae8169cb30b198eb747e8c51894c95c9ce56076:/src/am7xxx.c?ds=sidebyside diff --git a/src/am7xxx.c b/src/am7xxx.c index 3e6b461..5b1e35a 100644 --- a/src/am7xxx.c +++ b/src/am7xxx.c @@ -667,7 +667,7 @@ typedef enum { static int scan_devices(am7xxx_context *ctx, scan_op op, unsigned int open_device_index, am7xxx_device **dev) { - int num_devices; + ssize_t num_devices; libusb_device** list; unsigned int current_index; int i; @@ -790,7 +790,7 @@ out: AM7XXX_PUBLIC int am7xxx_init(am7xxx_context **ctx) { - int ret = 0; + int ret; *ctx = malloc(sizeof(**ctx)); if (*ctx == NULL) {