From: Antonio Ospite Date: Thu, 6 Oct 2011 12:49:01 +0000 (+0200) Subject: kinect_upload_fw: fix a couple of minor warnings from 'sparse' X-Git-Tag: v0.1~1 X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/commitdiff_plain/7741d91241990d9ab7f79071ea3d644f2d8734d7 kinect_upload_fw: fix a couple of minor warnings from 'sparse' Sparse is a Semantic Parser for C, it gives these warnings on kinect_upload_fw.c: kinect_upload_fw.c:42:14: warning: symbol 'seq' was not declared. Should it be static? kinect_upload_fw.c:149:26: warning: Using plain integer as NULL pointer --- diff --git a/kinect_upload_fw/kinect_upload_fw.c b/kinect_upload_fw/kinect_upload_fw.c index eb65113..21bdef9 100644 --- a/kinect_upload_fw/kinect_upload_fw.c +++ b/kinect_upload_fw/kinect_upload_fw.c @@ -39,7 +39,7 @@ #include "endian.h" static libusb_device_handle *dev; -unsigned int seq; +static unsigned int seq; typedef struct { uint32_t magic; @@ -146,7 +146,7 @@ int main(int argc, char** argv) { } libusb_init(NULL); - libusb_set_debug(0, 3); + libusb_set_debug(NULL, 3); dev = libusb_open_device_with_vid_pid(NULL, 0x045e, 0x02ad); if (dev == NULL) {