summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLudovic Rousseau <ludovic.rousseau+github@gmail.com>2013-03-15 09:35:16 +0100
committerLudovic Rousseau <ludovic.rousseau+github@gmail.com>2013-03-15 09:35:16 +0100
commite78d37b2acbd804841e8206216a9ffad2112ebb2 (patch)
treec32e769734fef274c901072daff78b05468df0e5 /examples
parentd345a1ed6bbef289b27862c3d0eff58d5ab76674 (diff)
downloadlibusb-e78d37b2acbd804841e8206216a9ffad2112ebb2.tar.gz
Samples: fix compiler warning
Make fx3_load_ram a static function. ezusb.c:534: warning: no previous prototype for ‘fx3_load_ram’
Diffstat (limited to 'examples')
-rw-r--r--examples/ezusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ezusb.c b/examples/ezusb.c
index d80422f..1551187 100644
--- a/examples/ezusb.c
+++ b/examples/ezusb.c
@@ -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;