Samples: fix compiler warning
authorLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Fri, 15 Mar 2013 08:35:16 +0000 (09:35 +0100)
committerLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Fri, 15 Mar 2013 08:35:16 +0000 (09:35 +0100)
Make fx3_load_ram a static function.

ezusb.c:534: warning: no previous prototype for ‘fx3_load_ram’

examples/ezusb.c
libusb/version_nano.h

index d80422f..1551187 100644 (file)
@@ -530,7 +530,7 @@ static int ram_poke(void *context, uint32_t addr, bool external,
  * Load an Cypress Image file into target RAM.
  * The file is assumed to be in Cypress IMG format.
  */
-int fx3_load_ram(libusb_device_handle *device, const char *path)
+static int fx3_load_ram(libusb_device_handle *device, const char *path)
 {
        uint32_t dCheckSum, dExpectedCheckSum, dAddress, i, dLen, dLength;
        uint16_t wSignature;
index e652d0e..04ee3a8 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10629
+#define LIBUSB_NANO 10630