aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/bootp_stat.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 /gtk/bootp_stat.c
parent3f0d0ca5ea5f6034904e4cb03b38b66e7b03e165 (diff)
downloadwireshark-71217a80071adae12b53253e3025b2220e6c89f5.tar.gz
wireshark-71217a80071adae12b53253e3025b2220e6c89f5.tar.bz2
wireshark-71217a80071adae12b53253e3025b2220e6c89f5.zip
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/bootp_stat.c')
-rw-r--r--gtk/bootp_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/bootp_stat.c b/gtk/bootp_stat.c
index a6df442882..d7b718e7ca 100644
--- a/gtk/bootp_stat.c
+++ b/gtk/bootp_stat.c
@@ -116,10 +116,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)