aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/conversations_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/conversations_eth.c')
-rw-r--r--gtk/conversations_eth.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/conversations_eth.c b/gtk/conversations_eth.c
index 681b64657e..4196f25124 100644
--- a/gtk/conversations_eth.c
+++ b/gtk/conversations_eth.c
@@ -41,9 +41,9 @@
static int
-eth_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, void *vip)
+eth_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip)
{
- eth_hdr *ehdr=vip;
+ const eth_hdr *ehdr=vip;
add_conversation_table_data((conversations_table *)pct, &ehdr->src, &ehdr->dst, 0, 0, 1, pinfo->fd->pkt_len, SAT_ETHER, PT_NONE);
@@ -63,7 +63,7 @@ eth_conversation_init(char *optarg)
filter=NULL;
}
- init_conversation_table(TRUE, "Ethernet", "eth", filter, (void *)eth_conversation_packet);
+ init_conversation_table(TRUE, "Ethernet", "eth", filter, eth_conversation_packet);
}
@@ -83,6 +83,5 @@ register_tap_listener_eth_conversation(void)
register_tap_menu_item("Ethernet", REGISTER_TAP_GROUP_CONVERSATION_LIST,
eth_endpoints_cb, NULL, NULL, NULL);
- register_conversation_table(TRUE, "Ethernet", "eth", NULL /*filter*/, (void *)eth_conversation_packet);
+ register_conversation_table(TRUE, "Ethernet", "eth", NULL /*filter*/, eth_conversation_packet);
}
-