summaryrefslogtreecommitdiff
path: root/ui/gtk/hostlist_tcpip.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/hostlist_tcpip.c')
-rw-r--r--ui/gtk/hostlist_tcpip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/hostlist_tcpip.c b/ui/gtk/hostlist_tcpip.c
index 3acb3b7344..1e78fb0e6c 100644
--- a/ui/gtk/hostlist_tcpip.c
+++ b/ui/gtk/hostlist_tcpip.c
@@ -42,7 +42,7 @@ static int
tcpip_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip)
{
hostlist_table *hosts=(hostlist_table *)pit;
- const struct tcpheader *tcphdr=(struct tcpheader *)vip;
+ const struct tcpheader *tcphdr=(const struct tcpheader *)vip;
/* Take two "add" passes per packet, adding for each direction, ensures that all
packets are counted properly (even if address is sending to itself)