aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-14 18:58:04 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-14 18:58:04 +0530
commit577e7693d6bf9e679ae324da1272c1501d79b440 (patch)
tree5f74efd2d5c997014648e05979eb4901c91b4873
parent1847a7647f2ddd76bde99460fed994f5f585369c (diff)
downloadnnn-577e7693d6bf9e679ae324da1272c1501d79b440.tar.gz
Use persistent table
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index b3602a9..5dd43ea 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -511,7 +511,7 @@ static uchar crc8fast(const uchar * const message, size_t n)
size_t byte;
/* CRC data */
- const uchar crc8table[CRC8_TABLE_LEN] __attribute__ ((aligned)) = {
+ static const uchar crc8table[CRC8_TABLE_LEN] __attribute__ ((aligned)) = {
0, 94, 188, 226, 97, 63, 221, 131, 194, 156, 126, 32, 163, 253, 31, 65,
157, 195, 33, 127, 252, 162, 64, 30, 95, 1, 227, 189, 62, 96, 130, 220,
35, 125, 159, 193, 66, 28, 254, 160, 225, 191, 93, 3, 128, 222, 60, 98,