diff options
author | marius <marius@FreeBSD.org> | 2012-03-21 20:55:21 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2012-03-21 20:55:21 +0000 |
commit | 3bf3d7b5eedff0761be1bdcf50dd8fdc4d0e8b0c (patch) | |
tree | 53a012e2cac06a202a2c66bddb39a3f63850cbf4 /sys/boot/common | |
parent | 607fe1084cdbc1f03e09f7baafd7dd3af56399e8 (diff) | |
download | FreeBSD-src-3bf3d7b5eedff0761be1bdcf50dd8fdc4d0e8b0c.zip FreeBSD-src-3bf3d7b5eedff0761be1bdcf50dd8fdc4d0e8b0c.tar.gz |
Declare the CRC lookup-tables const as they hardly should change at
run-time.
Diffstat (limited to 'sys/boot/common')
-rw-r--r-- | sys/boot/common/crc32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/crc32.c b/sys/boot/common/crc32.c index 0325179..7621bea 100644 --- a/sys/boot/common/crc32.c +++ b/sys/boot/common/crc32.c @@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$"); #include "crc32.h" -static uint32_t crc32_tab[] = { +static const uint32_t const crc32_tab[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, |