aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/rlc_lte_graph.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2012-12-16 00:43:37 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2012-12-16 00:43:37 +0000
commitb369116122629461616bf6dc517c09dac512aa1f (patch)
tree9bea24fbd45188f774b02f706019ee5beabd2ced /ui/gtk/rlc_lte_graph.c
parent2dbf4f6fffb7b81d83d05ffc4e20788d3f03bb44 (diff)
Don't cast away constness of passed-in tap structs.
svn path=/trunk/; revision=46552
Diffstat (limited to 'ui/gtk/rlc_lte_graph.c')
-rw-r--r--ui/gtk/rlc_lte_graph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/rlc_lte_graph.c b/ui/gtk/rlc_lte_graph.c
index de0a81127a..0db6c393ef 100644
--- a/ui/gtk/rlc_lte_graph.c
+++ b/ui/gtk/rlc_lte_graph.c
@@ -750,7 +750,7 @@ tapall_rlc_lte_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, co
{
rlc_scan_t *ts=(rlc_scan_t *)pct;
struct graph *g = ts->g;
- rlc_lte_tap_info *rlchdr=(rlc_lte_tap_info*)vip;
+ const rlc_lte_tap_info *rlchdr = (const rlc_lte_tap_info*)vip;
/* See if this one matches current channel */
if (compare_headers(g->ueid, g->channelType, g->channelId, g->rlcMode, g->direction,
@@ -854,7 +854,7 @@ tap_lte_rlc_packet(void *pct, packet_info *pinfo _U_, epan_dissect_t *edt _U_, c
int n;
gboolean is_unique = TRUE;
th_t *th = pct;
- rlc_lte_tap_info *header = (rlc_lte_tap_info*)vip;
+ const rlc_lte_tap_info *header = (const rlc_lte_tap_info*)vip;
/* Check new header details against any/all stored ones */
for (n=0; n < th->num_hdrs; n++) {