diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-01-01 02:57:02 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-01-01 02:57:02 +0000 |
commit | 71217a80071adae12b53253e3025b2220e6c89f5 (patch) | |
tree | 0e6002853a3a04b81db3f093f0a09459ebbccc7e /gtk/dcerpc_stat.c | |
parent | 3f0d0ca5ea5f6034904e4cb03b38b66e7b03e165 (diff) |
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
Diffstat (limited to 'gtk/dcerpc_stat.c')
-rw-r--r-- | gtk/dcerpc_stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/dcerpc_stat.c b/gtk/dcerpc_stat.c index 6c0d67cdc9..34e95fee8f 100644 --- a/gtk/dcerpc_stat.c +++ b/gtk/dcerpc_stat.c @@ -114,10 +114,10 @@ dcerpcstat_reset(void *rs_arg) static int -dcerpcstat_packet(void *rs_arg, packet_info *pinfo, epan_dissect_t *edt _U_, void *ri_arg) +dcerpcstat_packet(void *rs_arg, packet_info *pinfo, epan_dissect_t *edt _U_, const void *ri_arg) { rpcstat_t *rs = rs_arg; - dcerpc_info *ri = ri_arg; + const dcerpc_info *ri = ri_arg; if(!ri->call_data){ return 0; |