From e6d8dd9a5539ccafb6b903e0360764d1018f0bf9 Mon Sep 17 00:00:00 2001
From: Ludovic Rousseau <ludovic.rousseau@gmail.com>
Date: Fri, 1 Jun 2012 11:40:31 +0200
Subject: [PATCH 3/4] Fix compiler warning: no previous prototype
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

xusb.c:535:5: warning: no previous prototype for ‘get_hid_record_size’ [-Wmissing-prototypes]
xusb.c:589:5: warning: no previous prototype for ‘test_hid’ [-Wmissing-prototypes]
---
 examples/xusb.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/xusb.c b/examples/xusb.c
index 3f00f34..c158727 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -532,7 +532,7 @@ static int test_mass_storage(libusb_device_handle *handle, uint8_t endpoint_in,
 }
 
 // HID
-int get_hid_record_size(uint8_t *hid_report_descriptor, int size, int type)
+static int get_hid_record_size(uint8_t *hid_report_descriptor, int size, int type)
 {
 	uint8_t i, j = 0;
 	uint8_t offset;
@@ -586,7 +586,7 @@ int get_hid_record_size(uint8_t *hid_report_descriptor, int size, int type)
 	}
 }
 
-int test_hid(libusb_device_handle *handle, uint8_t endpoint_in)
+static int test_hid(libusb_device_handle *handle, uint8_t endpoint_in)
 {
 	int r, size, descriptor_size;
 	uint8_t hid_report_descriptor[256];
-- 
1.7.10

