]> Sergey Matveev's repositories - nnn.git/commitdiff
Use persistent table
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 14 Mar 2019 13:28:04 +0000 (18:58 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 14 Mar 2019 13:28:04 +0000 (18:58 +0530)
src/nnn.c

index b3602a90421222d4fee789d2567cfb7e6f5312c4..5dd43ea1d945a6363a109ccbe0bf06f5d6c21116 100644 (file)
--- 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,