Don't unnecessarily cast away constness.

Change-Id: Ia7e6f55d4398ec2d1d35f3dc4ef5ff0c51b9746d
Reviewed-on: https://code.wireshark.org/review/25959
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-02-21 00:19:51 -08:00
parent a888bf7e68
commit 9efce5c916
1 changed files with 1 additions and 1 deletions

View File

@ -2849,7 +2849,7 @@ sharkd_session_process_frame_cb(epan_dissect_t *edt, proto_tree *tree, struct ep
for (i = 0; i < count; i++)
{
struct data_source *src = (struct data_source *) g_slist_nth_data((GSList *) data_src, i);
const struct data_source *src = (const struct data_source *) g_slist_nth_data((GSList *) data_src, i);
tvbs[i] = get_data_source_tvb(src);
}