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_crc16.c | |
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_crc16.c')
-rw-r--r-- | tools/firmware-utils/src/cyg_crc16.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/cyg_crc16.c b/tools/firmware-utils/src/cyg_crc16.c index 8b3735289f..3861ff03e8 100644 --- a/tools/firmware-utils/src/cyg_crc16.c +++ b/tools/firmware-utils/src/cyg_crc16.c @@ -96,8 +96,9 @@ static const cyg_uint16 crc16_tab[] = { }; cyg_uint16 -cyg_crc16(unsigned char *buf, int len) +cyg_crc16(void *ptr, int len) { + unsigned char *buf = ptr; int i; cyg_uint16 cksum; |