Make the signatures of functions passed to "register_tap_listener()"
[obnox/wireshark/wip.git] / gtk / hostlist_wlan.c
index be9051c3471c3e65fd6a446955406cd4ad23b48f..00034c5863be184a23fbfa0fdba372a9aeac1c55 100644 (file)
@@ -1,7 +1,7 @@
 /* hostlist_wlan.c   2004 Giles Scott 
  * modified from endpoint_talkers_eth.c   2003 Ronnie Sahlberg
  *
- * $Id $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
 
 
 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);
 
 }
 
@@ -83,8 +83,8 @@ register_tap_listener_wlan_hostlist(void)
 {
         register_ethereal_tap("hosts,wlan", gtk_wlan_hostlist_init);
 
-        register_tap_menu_item("Wlan", REGISTER_TAP_GROUP_ENDPOINT_LIST,
+        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);
 }