summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools/crc.c
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-08-08 21:25:50 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-10-18 19:08:32 +0200
commit815b289cb3438ed566b3e9dc5074fe12e4b98f46 (patch)
treef4a92ac428098eda3a82da4549652b2ea079a599 /utils/imxtools/sbtools/crc.c
parent387a45923c2ea6b223584815c7cd796ae064e22e (diff)
downloadrockbox-815b289cb3438ed566b3e9dc5074fe12e4b98f46.tar.gz
rockbox-815b289cb3438ed566b3e9dc5074fe12e4b98f46.zip
imxtools: Replace use of "byte" with its underlying uint8_t.
libtomcrypt uses a macro "byte" which conflicts with this type. Since the underlying type is uint8_t and there's no real benefit from using a custom type use the actual underlying type. Change-Id: I982c9b8bdcb657b99fa645a5235303af7afda25b
Diffstat (limited to 'utils/imxtools/sbtools/crc.c')
-rw-r--r--utils/imxtools/sbtools/crc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/imxtools/sbtools/crc.c b/utils/imxtools/sbtools/crc.c
index eaf257ddfe..9f7146881b 100644
--- a/utils/imxtools/sbtools/crc.c
+++ b/utils/imxtools/sbtools/crc.c
@@ -68,12 +68,12 @@ static uint32_t crc_table[256] = {
68 0x0B8757BDA, 0x0B5365D03, 0x0B1F740B4 68 0x0B8757BDA, 0x0B5365D03, 0x0B1F740B4
69}; 69};
70 70
71uint32_t crc(byte *data, int size) 71uint32_t crc(uint8_t *data, int size)
72{ 72{
73 return crc_continue(0xffffffff, data, size); 73 return crc_continue(0xffffffff, data, size);
74} 74}
75 75
76uint32_t crc_continue(uint32_t previous_crc, byte *data, int size) 76uint32_t crc_continue(uint32_t previous_crc, uint8_t *data, int size)
77{ 77{
78 uint32_t c = previous_crc; 78 uint32_t c = previous_crc;
79 /* normal CRC */ 79 /* normal CRC */