kinect_upload_fw.c:99:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
kinect_upload_fw.c:188:4: error: pointer targets in passing argument 3 of ‘libusb_bulk_transfer’ differ in signedness [-Wpointer-sign]
#include <libusb.h>
static libusb_device_handle *dev;
-int seq;
+unsigned int seq;
typedef struct {
uint32_t magic;
seq++;
uint32_t addr = 0x00080000;
- char page[0x4000];
+ unsigned char page[0x4000];
int read;
do {
read = fread(page, 1, 0x4000, fw);