From e363d0992ef6e2edee5c01d3f75a7a609947f9ad Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 1 Jan 2005 02:57:02 +0000 Subject: As we've made the tap_specific_data field of a tap_packet_t structure a const pointer (so that we don't get complaints when we make the tap-specific data argument to "tap_queue_packet()" a const pointer, allowing dissectors to hand const data to a tap without a complaint), we should make the tap per-packet function take a const pointer as an argument as well. Do so. In some taps, use _U_, or actually use the argument, rather than sticking in dummy "X = X" assignments to fake use of parameters. (This means that the tap functions in question no longer have the notion that they act on a particular static structure wired in.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12910 f5534014-38df-0310-8fa8-9805f1628bb7 --- tap-bootpstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tap-bootpstat.c') diff --git a/tap-bootpstat.c b/tap-bootpstat.c index da2a2e29a3..7f75d85024 100644 --- a/tap-bootpstat.c +++ b/tap-bootpstat.c @@ -82,10 +82,10 @@ dhcpstat_reset(void *psp) g_hash_table_foreach( sp->hash, (GHFunc)dhcp_reset_hash, NULL); } static int -dhcpstat_packet(void *psp, packet_info *pinfo _U_, epan_dissect_t *edt _U_, void *pri) +dhcpstat_packet(void *psp, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *pri) { dhcpstat_t *sp=psp; - bootp_info_value_t value=pri; + const bootp_info_value_t value=pri; dhcp_message_type_t *sc; if (sp==NULL) -- cgit v1.2.3