aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/hostlist_fddi.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_fddi.c
parent5da116d531a127468b190e665c87a00197d68b1b (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_fddi.c')
-rw-r--r--gtk/hostlist_fddi.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/hostlist_fddi.c b/gtk/hostlist_fddi.c
index 0ca976dd5d..5f2083005d 100644
--- a/gtk/hostlist_fddi.c
+++ b/gtk/hostlist_fddi.c
@@ -41,10 +41,10 @@
static int
-fddi_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, void *vip)
+fddi_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip)
{
hostlist_table *hosts=(hostlist_table *)pit;
- fddi_hdr *ehdr=vip;
+ const fddi_hdr *ehdr=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_fddi_hostlist_init(char *optarg)
filter=NULL;
}
- init_hostlist_table(TRUE, "FDDI Hosts", "fddi", filter, (void *)fddi_hostlist_packet);
+ init_hostlist_table(TRUE, "FDDI Hosts", "fddi", filter, fddi_hostlist_packet);
}
@@ -88,6 +88,5 @@ register_tap_listener_fddi_hostlist(void)
register_tap_menu_item("FDDI", REGISTER_TAP_GROUP_ENDPOINT_LIST,
gtk_fddi_hostlist_cb, NULL, NULL, NULL);
- register_hostlist_table(TRUE, "FDDI", "fddi", NULL /*filter*/, (void *)fddi_hostlist_packet);
+ register_hostlist_table(TRUE, "FDDI", "fddi", NULL /*filter*/, fddi_hostlist_packet);
}
-