aboutsummaryrefslogtreecommitdiffstats
path: root/packet-beep.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-11-28 03:57:50 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-11-28 03:57:50 +0000
commit0085a47c0cadf52ae5b2a3b97702298de48f520f (patch)
tree7c2cf753bee54e30f47560b8174dd9ec3a8ba5b9 /packet-beep.c
parenta2e26e579d8da0ed6b1b8ba8e01cb876ffbfff14 (diff)
Arguments to hash routines are gconstpointer's; assign them to const
pointers. The first argument to "sscanf()" is a "const char *"; don't cast const pointers to "char *" when passing them to "sscanf()". Assign the result of "tvb_get_ptr()" to const pointers, not non-const pointers. Make the "pdata" argument to various DCE routines a const pointer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6688 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-beep.c')
-rw-r--r--packet-beep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-beep.c b/packet-beep.c
index 59b9d1ccf9..91e38d8611 100644
--- a/packet-beep.c
+++ b/packet-beep.c
@@ -1,7 +1,7 @@
/* packet-beep.c
* Routines for BEEP packet disassembly
*
- * $Id: packet-beep.c,v 1.11 2002/08/28 21:00:07 jmayer Exp $
+ * $Id: packet-beep.c,v 1.12 2002/11/28 03:57:49 guy Exp $
*
* Copyright (c) 2000 by Richard Sharpe <rsharpe@ns.aus.com>
* Modified 2001 Darren New <dnew@invisible.net> for BEEP.
@@ -147,8 +147,8 @@ static GMemChunk *beep_packet_infos = NULL;
static gint
beep_equal(gconstpointer v, gconstpointer w)
{
- struct beep_request_key *v1 = (struct beep_request_key *)v;
- struct beep_request_key *v2 = (struct beep_request_key *)w;
+ const struct beep_request_key *v1 = (const struct beep_request_key *)v;
+ const struct beep_request_key *v2 = (const struct beep_request_key *)w;
#if defined(DEBUG_BEEP_HASH)
printf("Comparing %08X\n and %08X\n",
@@ -165,7 +165,7 @@ beep_equal(gconstpointer v, gconstpointer w)
static guint
beep_hash(gconstpointer v)
{
- struct beep_request_key *key = (struct beep_request_key *)v;
+ const struct beep_request_key *key = (const struct beep_request_key *)v;
guint val;
val = key->conversation;