summaryrefslogtreecommitdiff
path: root/flash/make_firmware/make_firmware.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-05 18:44:36 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-05 18:44:36 +0100
commitfdd4aef34003587d7fd9ed754dd35ce901b639bf (patch)
treed129b8b8e587d4a1a7215c2226bfafe55f6dd643 /flash/make_firmware/make_firmware.c
parentc907e127f8b1d267e91e82d28cdb210288852b82 (diff)
downloadrockbox-fdd4aef34003587d7fd9ed754dd35ce901b639bf.tar.gz
rockbox-fdd4aef34003587d7fd9ed754dd35ce901b639bf.zip
Make thirty functions static to reduce binary size
If any of those functions should be (unused) API functions, they can easily be turned back once really needed. Detected using a new cppcheck check that uses the internal symbol database to catch functions that are only used in the current file. Change-Id: Ic2b1e5b8020b76397f11cefc4e205f3b7ac1f184
Diffstat (limited to 'flash/make_firmware/make_firmware.c')
-rw-r--r--flash/make_firmware/make_firmware.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/flash/make_firmware/make_firmware.c b/flash/make_firmware/make_firmware.c
index a79f2b970d..bd838bf3bf 100644
--- a/flash/make_firmware/make_firmware.c
+++ b/flash/make_firmware/make_firmware.c
@@ -69,7 +69,7 @@ UINT32 Read32(UINT8* pByte)
69} 69}
70 70
71 71
72UINT32 CalcCRC32 (const UINT8* buf, UINT32 len) 72static UINT32 CalcCRC32 (const UINT8* buf, UINT32 len)
73{ 73{
74 static const UINT32 crc_table[256] = 74 static const UINT32 crc_table[256] =
75 { // CRC32 lookup table for polynomial 0x04C11DB7 75 { // CRC32 lookup table for polynomial 0x04C11DB7
@@ -127,7 +127,7 @@ UINT32 CalcCRC32 (const UINT8* buf, UINT32 len)
127} 127}
128 128
129 129
130UINT32 PlaceImage(char* filename, UINT32 pos, UINT8* pFirmware, UINT32 limit) 130static UINT32 PlaceImage(char* filename, UINT32 pos, UINT8* pFirmware, UINT32 limit)
131{ 131{
132 UINT32 size, read; 132 UINT32 size, read;
133 FILE* pFile; 133 FILE* pFile;