diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-01-01 12:49:54 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-01-01 12:49:54 +0000 |
commit | 4df2c4abd920cc579c6f5691670d4fc0e75c130a (patch) | |
tree | 1053d7fbe4acc8c7db758d7e679c241bdc981c03 /gtk/hostlist_ip.c | |
parent | 5da116d531a127468b190e665c87a00197d68b1b (diff) |
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_ip.c')
-rw-r--r-- | gtk/hostlist_ip.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/hostlist_ip.c b/gtk/hostlist_ip.c index 0f95fcce51..cc6294e4ba 100644 --- a/gtk/hostlist_ip.c +++ b/gtk/hostlist_ip.c @@ -43,10 +43,10 @@ static int -ip_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, void *vip) +ip_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip) { hostlist_table *hosts=(hostlist_table *)pit; - e_ip *iph=vip; + const e_ip *iph=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) @@ -67,7 +67,7 @@ gtk_ip_hostlist_init(char *optarg) filter=NULL; } - init_hostlist_table(TRUE, "IPv4 Hosts", "ip", filter, (void *)ip_hostlist_packet); + init_hostlist_table(TRUE, "IPv4 Hosts", "ip", filter, ip_hostlist_packet); } @@ -87,6 +87,5 @@ register_tap_listener_ip_hostlist(void) register_tap_menu_item("IPv4", REGISTER_TAP_GROUP_ENDPOINT_LIST, gtk_ip_hostlist_cb, NULL, NULL, NULL); - register_hostlist_table(TRUE, "IPv4", "ip", NULL /*filter*/, (void *)ip_hostlist_packet); + register_hostlist_table(TRUE, "IPv4", "ip", NULL /*filter*/, ip_hostlist_packet); } - |