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/conversations_ipx.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/conversations_ipx.c')
-rw-r--r-- | gtk/conversations_ipx.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/conversations_ipx.c b/gtk/conversations_ipx.c index 4b90e2a3a2..634d7d56e7 100644 --- a/gtk/conversations_ipx.c +++ b/gtk/conversations_ipx.c @@ -41,9 +41,9 @@ static int -ipx_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, void *vip) +ipx_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip) { - ipxhdr_t *ipxh=vip; + const ipxhdr_t *ipxh=vip; add_conversation_table_data((conversations_table *)pct, &ipxh->ipx_src, &ipxh->ipx_dst, 0, 0, 1, pinfo->fd->pkt_len, SAT_NONE, PT_NONE); @@ -63,7 +63,7 @@ ipx_conversation_init(char *optarg) filter=NULL; } - init_conversation_table(TRUE, "IPX", "ipx", filter, (void *)ipx_conversation_packet); + init_conversation_table(TRUE, "IPX", "ipx", filter, ipx_conversation_packet); } @@ -83,6 +83,5 @@ register_tap_listener_ipx_conversation(void) register_tap_menu_item("IPX", REGISTER_TAP_GROUP_CONVERSATION_LIST, ipx_endpoints_cb, NULL, NULL, NULL); - register_conversation_table(TRUE, "IPX", "ipx", NULL /*filter*/, (void *)ipx_conversation_packet); + register_conversation_table(TRUE, "IPX", "ipx", NULL /*filter*/, ipx_conversation_packet); } - |