Add missing consts.

svn path=/trunk/; revision=53829
This commit is contained in:
Jakub Zawadzki 2013-12-07 17:49:41 +00:00
parent fa5083e8af
commit 333fea4fb9
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
guint32
ip_get_subnet_mask(const guint32 mask_length)
{
static guint32 masks[33] = {
static const guint32 masks[33] = {
0x00000000,
0x80000000, 0xc0000000, 0xe0000000, 0xf0000000,
0xf8000000, 0xfc000000, 0xfe000000, 0xff000000,

View File

@ -41,7 +41,7 @@
/**
* Reversed CRC table
*****************************************************************************/
static guint8 crctable[256] = { /*reversed, 8-bit, poly=0x07*/
static const guint8 crctable[256] = { /*reversed, 8-bit, poly=0x07*/
0x00, 0x91, 0xE3, 0x72, 0x07, 0x96, 0xE4, 0x75, 0x0E, 0x9F, 0xED, 0x7C, 0x09, 0x98, 0xEA, 0x7B,
0x1C, 0x8D, 0xFF, 0x6E, 0x1B, 0x8A, 0xF8, 0x69, 0x12, 0x83, 0xF1, 0x60, 0x15, 0x84, 0xF6, 0x67,
0x38, 0xA9, 0xDB, 0x4A, 0x3F, 0xAE, 0xDC, 0x4D, 0x36, 0xA7, 0xD5, 0x44, 0x31, 0xA0, 0xD2, 0x43,