summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorDominic Spill <dominicgs@gmail.com>2015-10-15 14:18:23 -0700
committerDominic Spill <dominicgs@gmail.com>2015-10-15 14:18:23 -0700
commit1bf44f4bbb5b04518b729c6de9205e13937e0290 (patch)
treeaade0c47dbab1b15cba1d38f930e251e698cfd57 /host
parent93284da7ebd20ea0415cea9cacb011f200cbbb46 (diff)
parentd6a9f770cb1809834d99e9a94182a4c11ac99ffd (diff)
Merge pull request #115 from rsaxvc/master
Misc firmware cleanup
Diffstat (limited to 'host')
-rw-r--r--host/ubertooth-tools/src/dfu.h2
-rw-r--r--host/ubertooth-tools/src/ubertooth-dfu.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/host/ubertooth-tools/src/dfu.h b/host/ubertooth-tools/src/dfu.h
index cb7795d..de87162 100644
--- a/host/ubertooth-tools/src/dfu.h
+++ b/host/ubertooth-tools/src/dfu.h
@@ -70,7 +70,7 @@ typedef struct DFU_suffix {
uint32_t dwCRC;
} DFU_suffix;
-static uint32_t crc_table[] = {
+static const uint32_t crc_table[] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
diff --git a/host/ubertooth-tools/src/ubertooth-dfu.c b/host/ubertooth-tools/src/ubertooth-dfu.c
index 53254f5..b1e1931 100644
--- a/host/ubertooth-tools/src/ubertooth-dfu.c
+++ b/host/ubertooth-tools/src/ubertooth-dfu.c
@@ -33,7 +33,7 @@
*/
/* CRC32 implementation for DFU suffix */
-uint32_t crc32(uint8_t *data, uint32_t data_len) {
+static uint32_t crc32(uint8_t *data, uint32_t data_len) {
uint32_t crc = 0xffffffff;
uint32_t i;
for(i=0; i<data_len; i++)
@@ -41,7 +41,7 @@ uint32_t crc32(uint8_t *data, uint32_t data_len) {
return crc;
}
-int check_suffix(FILE* signedfile, DFU_suffix* suffix) {
+static int check_suffix(FILE* signedfile, DFU_suffix* suffix) {
uint8_t *data;
uint32_t crc, data_length;