aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pdcp-lte.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-04-09 18:44:10 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-04-09 18:44:10 +0000
commit23494db817c6a5e0262a5312d7b97e1e601091f7 (patch)
tree37ce8ddd63232d2fb8256477fd509a5846d3b678 /epan/dissectors/packet-pdcp-lte.c
parent1e6301fa8b049cf9e9086c034b6550449b2d6402 (diff)
Add missing const attribute to some char *
Fix some "assignment discards qualifiers from pointer target type", etc svn path=/trunk/; revision=41996
Diffstat (limited to 'epan/dissectors/packet-pdcp-lte.c')
-rw-r--r--epan/dissectors/packet-pdcp-lte.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-pdcp-lte.c b/epan/dissectors/packet-pdcp-lte.c
index 50454b8d32..f744a8d057 100644
--- a/epan/dissectors/packet-pdcp-lte.c
+++ b/epan/dissectors/packet-pdcp-lte.c
@@ -347,8 +347,8 @@ static GHashTable *pdcp_sequence_analysis_channel_hash = NULL;
/* Equal keys */
static gint pdcp_channel_equal(gconstpointer v, gconstpointer v2)
{
- const pdcp_channel_hash_key* val1 = (pdcp_channel_hash_key *)v;
- const pdcp_channel_hash_key* val2 = (pdcp_channel_hash_key *)v2;
+ const pdcp_channel_hash_key* val1 = (const pdcp_channel_hash_key *)v;
+ const pdcp_channel_hash_key* val2 = (const pdcp_channel_hash_key *)v2;
/* All fields must match */
return (memcmp(val1, val2, sizeof(pdcp_channel_hash_key)) == 0);
@@ -357,7 +357,7 @@ static gint pdcp_channel_equal(gconstpointer v, gconstpointer v2)
/* Compute a hash value for a given key. */
static guint pdcp_channel_hash_func(gconstpointer v)
{
- const pdcp_channel_hash_key* val1 = (pdcp_channel_hash_key *)v;
+ const pdcp_channel_hash_key* val1 = (const pdcp_channel_hash_key *)v;
/* TODO: use multipliers */
return val1->ueId + val1->plane + val1->channelId + val1->direction;
@@ -376,8 +376,8 @@ typedef struct {
static gint pdcp_result_hash_equal(gconstpointer v, gconstpointer v2)
{
- const pdcp_result_hash_key* val1 = (pdcp_result_hash_key *)v;
- const pdcp_result_hash_key* val2 = (pdcp_result_hash_key *)v2;
+ const pdcp_result_hash_key* val1 = (const pdcp_result_hash_key *)v;
+ const pdcp_result_hash_key* val2 = (const pdcp_result_hash_key *)v2;
/* All fields must match */
return (memcmp(val1, val2, sizeof(pdcp_result_hash_key)) == 0);
@@ -386,7 +386,7 @@ static gint pdcp_result_hash_equal(gconstpointer v, gconstpointer v2)
/* Compute a hash value for a given key. */
static guint pdcp_result_hash_func(gconstpointer v)
{
- const pdcp_result_hash_key* val1 = (pdcp_result_hash_key *)v;
+ const pdcp_result_hash_key* val1 = (const pdcp_result_hash_key *)v;
/* TODO: check collision-rate / execution-time of these multipliers? */
return val1->frameNumber + (val1->channelId<<13) +