Skip to content

Commit

Permalink
[PATCH] constify libcrc32c table
Browse files Browse the repository at this point in the history
constify a medium-large CRC code table.

Signed-off-by: Andreas Mohr <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Andreas Mohr authored and Linus Torvalds committed Jun 25, 2006
1 parent 3b364b8 commit 5f507d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libcrc32c.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ crc32c_le(u32 crc, unsigned char const *p, size_t len)
* reflect output bytes = true
*/

static u32 crc32c_table[256] = {
static const u32 crc32c_table[256] = {
0x00000000L, 0xF26B8303L, 0xE13B70F7L, 0x1350F3F4L,
0xC79A971FL, 0x35F1141CL, 0x26A1E7E8L, 0xD4CA64EBL,
0x8AD958CFL, 0x78B2DBCCL, 0x6BE22838L, 0x9989AB3BL,
Expand Down

0 comments on commit 5f507d9

Please sign in to comment.