From 7741d91241990d9ab7f79071ea3d644f2d8734d7 Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ospite@studenti.unina.it>
Date: Thu, 6 Oct 2011 14:49:01 +0200
Subject: [PATCH 1/1] 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
---
 kinect_upload_fw/kinect_upload_fw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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) {
-- 
2.1.4