From 3f31fe5a74bd4758228529964bac6b0d5509438e Mon Sep 17 00:00:00 2001 From: Xavier Chapron Date: Thu, 1 Feb 2024 09:14:16 +0100 Subject: [PATCH] src: bolos: cx_crc.c: Constify CRC tables --- src/bolos/cx_crc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bolos/cx_crc.c b/src/bolos/cx_crc.c index 53ab49f0..4c065470 100644 --- a/src/bolos/cx_crc.c +++ b/src/bolos/cx_crc.c @@ -4,7 +4,7 @@ #define cx_crc16_update sys_cx_crc16_update -static unsigned short const cx_ccitt16[] = { +static const unsigned short const cx_ccitt16[] = { 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, 0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, 0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, 0x9339, 0x8318, 0xb37b, @@ -50,7 +50,7 @@ unsigned short sys_cx_crc16_update(unsigned short crc, const void *buf, #define cx_crc32_update sys_cx_crc32_update -static unsigned int cx_ccitt32[] = { +static const unsigned int cx_ccitt32[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,