mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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
This commit is contained in:
parent
387a45923c
commit
815b289cb3
8 changed files with 69 additions and 70 deletions
|
|
@ -68,12 +68,12 @@ static uint32_t crc_table[256] = {
|
|||
0x0B8757BDA, 0x0B5365D03, 0x0B1F740B4
|
||||
};
|
||||
|
||||
uint32_t crc(byte *data, int size)
|
||||
uint32_t crc(uint8_t *data, int size)
|
||||
{
|
||||
return crc_continue(0xffffffff, data, size);
|
||||
}
|
||||
|
||||
uint32_t crc_continue(uint32_t previous_crc, byte *data, int size)
|
||||
uint32_t crc_continue(uint32_t previous_crc, uint8_t *data, int size)
|
||||
{
|
||||
uint32_t c = previous_crc;
|
||||
/* normal CRC */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue