HTTP2: fix cast from 'const void *' to 'struct HTTP2Tap *' drops const qualifier [-Wcast-qual]

Change-Id: I9d0ba8eb1ce5a3e3f867266f3fbad0727984fca2
Reviewed-on: https://code.wireshark.org/review/12873
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Alexis La Goutte 2015-12-26 15:04:03 +01:00 committed by Michael Mann
parent 7f34fd5c0d
commit f26615456a
1 changed files with 1 additions and 1 deletions

View File

@ -1866,7 +1866,7 @@ static void http2_stats_tree_init(stats_tree* st)
static int http2_stats_tree_packet(stats_tree* st, packet_info* pinfo _U_, epan_dissect_t* edt _U_, const void* p)
{
struct HTTP2Tap *pi = (struct HTTP2Tap *)p;
const struct HTTP2Tap *pi = (const struct HTTP2Tap *)p;
tick_stat_node(st, st_str_http2, 0, FALSE);
stats_tree_tick_pivot(st, st_node_http2_type,
val_to_str(pi->type, http2_type_vals, "Unknown type (%d)"));