From 72baf400bf80ec99c7fd95dae6dd678ada78a532 Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Fri, 15 Nov 2013 23:33:48 +0000 Subject: [PATCH] Make swaptab const. svn path=/trunk/; revision=53351 --- epan/bitswap.c | 4 +++- epan/bitswap.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/epan/bitswap.c b/epan/bitswap.c index f70620cbb2..bccbecf401 100644 --- a/epan/bitswap.c +++ b/epan/bitswap.c @@ -30,7 +30,9 @@ #include "bitswap.h" /* "swaptab[i]" is the value of "i" with the bits reversed. */ -guint8 swaptab[256] = { +const guint8 +swaptab[256] = +{ 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, 0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8, diff --git a/epan/bitswap.h b/epan/bitswap.h index 96c045f6a0..bbf374b01e 100644 --- a/epan/bitswap.h +++ b/epan/bitswap.h @@ -31,7 +31,7 @@ extern "C" { #endif /* __cplusplus */ -WS_DLL_PUBLIC guint8 swaptab[256]; +WS_DLL_PUBLIC const guint8 swaptab[256]; #define BIT_SWAP(b) (swaptab[b])