aboutsummaryrefslogtreecommitdiffstats
path: root/tap-protocolinfo.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-01-01 02:57:02 +0000
committerGuy Harris <guy@alum.mit.edu>2005-01-01 02:57:02 +0000
commit71217a80071adae12b53253e3025b2220e6c89f5 (patch)
tree0e6002853a3a04b81db3f093f0a09459ebbccc7e /tap-protocolinfo.c
parent3f0d0ca5ea5f6034904e4cb03b38b66e7b03e165 (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 'tap-protocolinfo.c')
-rw-r--r--tap-protocolinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tap-protocolinfo.c b/tap-protocolinfo.c
index fcb4dbb2e4..3e07d6839e 100644
--- a/tap-protocolinfo.c
+++ b/tap-protocolinfo.c
@@ -48,7 +48,7 @@ typedef struct _pci_t {
static int
-protocolinfo_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, void *dummy _U_)
+protocolinfo_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const void *dummy _U_)
{
pci_t *rs=prs;
GPtrArray *gp;