From 71217a80071adae12b53253e3025b2220e6c89f5 Mon Sep 17 00:00:00 2001 From: Guy Harris 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.) svn path=/trunk/; revision=12910 --- tap-h225rassrt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tap-h225rassrt.c') diff --git a/tap-h225rassrt.c b/tap-h225rassrt.c index 998f00c063..2782dcb955 100644 --- a/tap-h225rassrt.c +++ b/tap-h225rassrt.c @@ -114,10 +114,10 @@ h225rassrt_reset(void *phs) } static int -h225rassrt_packet(void *phs, packet_info *pinfo _U_, epan_dissect_t *edt _U_, void *phi) +h225rassrt_packet(void *phs, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *phi) { h225rassrt_t *hs=(h225rassrt_t *)phs; - h225_packet_info *pi=phi; + const h225_packet_info *pi=phi; ras_type rasmsg_type = RAS_OTHER; ras_category rascategory = RAS_OTHERS; -- cgit v1.2.3