summaryrefslogtreecommitdiff
path: root/gtk/hostlist_tcpip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-01-01 12:49:54 +0000
committerGuy Harris <guy@alum.mit.edu>2005-01-01 12:49:54 +0000
commit4df2c4abd920cc579c6f5691670d4fc0e75c130a (patch)
tree1053d7fbe4acc8c7db758d7e679c241bdc981c03 /gtk/hostlist_tcpip.c
parent5da116d531a127468b190e665c87a00197d68b1b (diff)
downloadwireshark-4df2c4abd920cc579c6f5691670d4fc0e75c130a.tar.gz
Make the signatures of functions passed to "register_tap_listener()"
match what "register_tap_listener()" expects (rather than squelching warnings about the differences by casting function pointers to "void *"). Make static some functions not used outside the module in which they're defined. svn path=/trunk/; revision=12913
Diffstat (limited to 'gtk/hostlist_tcpip.c')
-rw-r--r--gtk/hostlist_tcpip.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/hostlist_tcpip.c b/gtk/hostlist_tcpip.c
index 0490866667..13a4ae0e21 100644
--- a/gtk/hostlist_tcpip.c
+++ b/gtk/hostlist_tcpip.c
@@ -41,10 +41,10 @@
static int
-tcpip_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, void *vip)
+tcpip_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip)
{
hostlist_table *hosts=(hostlist_table *)pit;
- struct tcpheader *tcphdr=vip;
+ const struct tcpheader *tcphdr=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)
@@ -68,7 +68,7 @@ gtk_tcpip_hostlist_init(char *optarg)
filter=NULL;
}
- init_hostlist_table(FALSE, "TCP Endpoints", "tcp", filter, (void *)tcpip_hostlist_packet);
+ init_hostlist_table(FALSE, "TCP Endpoints", "tcp", filter, tcpip_hostlist_packet);
}
@@ -88,6 +88,5 @@ register_tap_listener_tcpip_hostlist(void)
register_tap_menu_item("TCP (IPv4 & IPv6)", REGISTER_TAP_GROUP_ENDPOINT_LIST,
gtk_tcpip_hostlist_cb, NULL, NULL, NULL);
- register_hostlist_table(FALSE, "TCP", "tcp", NULL /*filter*/, (void *)tcpip_hostlist_packet);
+ register_hostlist_table(FALSE, "TCP", "tcp", NULL /*filter*/, tcpip_hostlist_packet);
}
-