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:
Dominik Riebeling 2020-08-08 21:25:50 +02:00
parent 387a45923c
commit 815b289cb3
8 changed files with 69 additions and 70 deletions

View file

@ -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 */