diff options
Diffstat (limited to 'firmware/common/crc32.c')
-rw-r--r-- | firmware/common/crc32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/common/crc32.c b/firmware/common/crc32.c index 1cd0ca0bd5..c8c70e415c 100644 --- a/firmware/common/crc32.c +++ b/firmware/common/crc32.c | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | /* Tool function to calculate a CRC32 across some buffer */ | 26 | /* Tool function to calculate a CRC32 across some buffer */ |
27 | /* third argument is either 0xFFFFFFFF to start or value from last piece */ | 27 | /* third argument is either 0xFFFFFFFF to start or value from last piece */ |
28 | unsigned crc_32(const void *src, unsigned len, unsigned crc32) | 28 | uint32_t crc_32(const void *src, uint32_t len, uint32_t crc32) |
29 | { | 29 | { |
30 | const unsigned char *buf = (const unsigned char *)src; | 30 | const unsigned char *buf = (const unsigned char *)src; |
31 | 31 | ||
@@ -39,7 +39,7 @@ unsigned crc_32(const void *src, unsigned len, unsigned crc32) | |||
39 | }; | 39 | }; |
40 | 40 | ||
41 | unsigned char byte; | 41 | unsigned char byte; |
42 | unsigned t; | 42 | uint32_t t; |
43 | 43 | ||
44 | while (len--) | 44 | while (len--) |
45 | { | 45 | { |