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_wlan.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_wlan.c')
-rw-r--r-- | gtk/hostlist_wlan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/hostlist_wlan.c b/gtk/hostlist_wlan.c index 5b17aa83e0..00034c5863 100644 --- a/gtk/hostlist_wlan.c +++ b/gtk/hostlist_wlan.c @@ -41,10 +41,10 @@ static int -wlan_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, void *vip) +wlan_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip) { hostlist_table *hosts=(hostlist_table *)pit; - wlan_hdr *whdr=vip; + const wlan_hdr *whdr=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) @@ -66,7 +66,7 @@ gtk_wlan_hostlist_init(char *optarg) filter=NULL; } - init_hostlist_table(TRUE, "WLAN Hosts", "wlan", filter, (void *)wlan_hostlist_packet); + init_hostlist_table(TRUE, "WLAN Hosts", "wlan", filter, wlan_hostlist_packet); } @@ -86,5 +86,5 @@ register_tap_listener_wlan_hostlist(void) register_tap_menu_item("WLAN", REGISTER_TAP_GROUP_ENDPOINT_LIST, gtk_wlan_hostlist_cb, NULL, NULL, NULL); - register_hostlist_table(TRUE, "WLAN", "wlan", NULL /*filter*/, (void *)wlan_hostlist_packet); + register_hostlist_table(TRUE, "WLAN", "wlan", NULL /*filter*/, wlan_hostlist_packet); } |