diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-06-10 19:30:36 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-06-10 23:43:10 +0000 |
commit | 5932044112a7b497022fc071409fb86362cb3430 (patch) | |
tree | 0bf08b1f56784d709f966823f8c6f922cfd89f49 /epan/ftypes | |
parent | b8779f9b59921e07b7d5318242dce12d12c53450 (diff) | |
download | wireshark-5932044112a7b497022fc071409fb86362cb3430.tar.gz |
ftype-protocol: Fix [-Wcast-qual] warnings
Change-Id: Ia8a02d8dc66aead486c8ae3f0bdf4cd82717ed20
Reviewed-on: https://code.wireshark.org/review/15817
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/ftypes')
-rw-r--r-- | epan/ftypes/ftype-protocol.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/epan/ftypes/ftype-protocol.c b/epan/ftypes/ftype-protocol.c index 49bf4fb9ff..fc6eddb0d7 100644 --- a/epan/ftypes/ftype-protocol.c +++ b/epan/ftypes/ftype-protocol.c @@ -205,8 +205,8 @@ slice(fvalue_t *fv, GByteArray *bytes, guint offset, guint length) static gboolean cmp_eq(const fvalue_t *fv_a, const fvalue_t *fv_b) { - protocol_value_t *a = (protocol_value_t*)&fv_a->value.protocol; - protocol_value_t *b = (protocol_value_t*)&fv_b->value.protocol; + const protocol_value_t *a = (const protocol_value_t *)&fv_a->value.protocol; + const protocol_value_t *b = (const protocol_value_t *)&fv_b->value.protocol; volatile gboolean eq = FALSE; TRY { @@ -230,8 +230,8 @@ cmp_eq(const fvalue_t *fv_a, const fvalue_t *fv_b) static gboolean cmp_ne(const fvalue_t *fv_a, const fvalue_t *fv_b) { - protocol_value_t *a = (protocol_value_t*)&fv_a->value.protocol; - protocol_value_t *b = (protocol_value_t*)&fv_b->value.protocol; + const protocol_value_t *a = (const protocol_value_t *)&fv_a->value.protocol; + const protocol_value_t *b = (const protocol_value_t *)&fv_b->value.protocol; volatile gboolean ne = TRUE; TRY { @@ -255,8 +255,8 @@ cmp_ne(const fvalue_t *fv_a, const fvalue_t *fv_b) static gboolean cmp_gt(const fvalue_t *fv_a, const fvalue_t *fv_b) { - protocol_value_t *a = (protocol_value_t*)&fv_a->value.protocol; - protocol_value_t *b = (protocol_value_t*)&fv_b->value.protocol; + const protocol_value_t *a = (const protocol_value_t *)&fv_a->value.protocol; + const protocol_value_t *b = (const protocol_value_t *)&fv_b->value.protocol; volatile gboolean gt = FALSE; TRY { @@ -284,8 +284,8 @@ cmp_gt(const fvalue_t *fv_a, const fvalue_t *fv_b) static gboolean cmp_ge(const fvalue_t *fv_a, const fvalue_t *fv_b) { - protocol_value_t *a = (protocol_value_t*)&fv_a->value.protocol; - protocol_value_t *b = (protocol_value_t*)&fv_b->value.protocol; + const protocol_value_t *a = (const protocol_value_t *)&fv_a->value.protocol; + const protocol_value_t *b = (const protocol_value_t *)&fv_b->value.protocol; volatile gboolean ge = FALSE; TRY { @@ -313,8 +313,8 @@ cmp_ge(const fvalue_t *fv_a, const fvalue_t *fv_b) static gboolean cmp_lt(const fvalue_t *fv_a, const fvalue_t *fv_b) { - protocol_value_t *a = (protocol_value_t*)&fv_a->value.protocol; - protocol_value_t *b = (protocol_value_t*)&fv_b->value.protocol; + const protocol_value_t *a = (const protocol_value_t *)&fv_a->value.protocol; + const protocol_value_t *b = (const protocol_value_t *)&fv_b->value.protocol; volatile gboolean lt = FALSE; TRY { @@ -342,8 +342,8 @@ cmp_lt(const fvalue_t *fv_a, const fvalue_t *fv_b) static gboolean cmp_le(const fvalue_t *fv_a, const fvalue_t *fv_b) { - protocol_value_t *a = (protocol_value_t*)&fv_a->value.protocol; - protocol_value_t *b = (protocol_value_t*)&fv_b->value.protocol; + const protocol_value_t *a = (const protocol_value_t *)&fv_a->value.protocol; + const protocol_value_t *b = (const protocol_value_t *)&fv_b->value.protocol; volatile gboolean le = FALSE; TRY { @@ -398,7 +398,7 @@ cmp_contains(const fvalue_t *fv_a, const fvalue_t *fv_b) static gboolean cmp_matches(const fvalue_t *fv_a, const fvalue_t *fv_b) { - protocol_value_t *a = (protocol_value_t*)&fv_a->value.protocol; + const protocol_value_t *a = (const protocol_value_t *)&fv_a->value.protocol; GRegex *regex = fv_b->value.re; volatile gboolean rc = FALSE; const char *data = NULL; /* tvb data */ |