diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-04-09 10:43:07 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2021-04-09 11:05:54 +0200 |
commit | 69e9138080ae39236de48561cf8923a86104eb35 (patch) | |
tree | ad605c6a312bcfd159bc6256fe17839826228919 /tools/firmware-utils/src/cyg_crc.h | |
parent | 052a30d65e90ac9b3359f4a23aa3024d102c178c (diff) | |
download | upstream-69e9138080ae39236de48561cf8923a86104eb35.tar.gz upstream-69e9138080ae39236de48561cf8923a86104eb35.tar.bz2 upstream-69e9138080ae39236de48561cf8923a86104eb35.zip |
firmware-utils: fix -Wpointer-sign warnings
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'tools/firmware-utils/src/cyg_crc.h')
-rw-r--r-- | tools/firmware-utils/src/cyg_crc.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/firmware-utils/src/cyg_crc.h b/tools/firmware-utils/src/cyg_crc.h index 7b59803446..68669715cf 100644 --- a/tools/firmware-utils/src/cyg_crc.h +++ b/tools/firmware-utils/src/cyg_crc.h @@ -74,34 +74,34 @@ typedef uint16_t cyg_uint16; // Compute a CRC, using the POSIX 1003 definition __externC cyg_uint32 -cyg_posix_crc32(unsigned char *s, int len); +cyg_posix_crc32(void *s, int len); // Gary S. Brown's 32 bit CRC __externC cyg_uint32 -cyg_crc32(unsigned char *s, int len); +cyg_crc32(void *s, int len); // Gary S. Brown's 32 bit CRC, but accumulate the result from a // previous CRC calculation __externC cyg_uint32 -cyg_crc32_accumulate(cyg_uint32 crc, unsigned char *s, int len); +cyg_crc32_accumulate(cyg_uint32 crc, void *s, int len); // Ethernet FCS Algorithm __externC cyg_uint32 -cyg_ether_crc32(unsigned char *s, int len); +cyg_ether_crc32(void *s, int len); // Ethernet FCS algorithm, but accumulate the result from a previous // CRC calculation. __externC cyg_uint32 -cyg_ether_crc32_accumulate(cyg_uint32 crc, unsigned char *s, int len); +cyg_ether_crc32_accumulate(cyg_uint32 crc, void *s, int len); // 16 bit CRC with polynomial x^16+x^12+x^5+1 __externC cyg_uint16 -cyg_crc16(unsigned char *s, int len); +cyg_crc16(void *s, int len); #endif // _SERVICES_CRC_CRC_H_ |