aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-12-31 02:08:01 +0000
committerGuy Harris <guy@alum.mit.edu>2004-12-31 02:08:01 +0000
commitcaf46302c86603d4425e05b582653e827afde9ca (patch)
treee4a12e1bded25940624af6226616ef7df7f60812 /epan/dissectors/packet-sip.c
parentf2972f0925345539836bc4081a3257fc534fe68b (diff)
Don't assign the const pointers passed to hash routines to non-const
pointers. svn path=/trunk/; revision=12890
Diffstat (limited to 'epan/dissectors/packet-sip.c')
-rw-r--r--epan/dissectors/packet-sip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c
index 8582db1a1c..6c82ea74b1 100644
--- a/epan/dissectors/packet-sip.c
+++ b/epan/dissectors/packet-sip.c
@@ -481,8 +481,8 @@ typedef struct
/* Equal keys */
gint sip_equal(gconstpointer v, gconstpointer v2)
{
- const sip_hash_key* val1 = (sip_hash_key*)v;
- const sip_hash_key* val2 = (sip_hash_key*)v2;
+ const sip_hash_key* val1 = v;
+ const sip_hash_key* val2 = v2;
/* Call id must match */
if (strcmp(val1->call_id, val2->call_id) != 0)
@@ -502,7 +502,7 @@ gint sip_equal(gconstpointer v, gconstpointer v2)
guint sip_hash_func(gconstpointer v)
{
gint n;
- sip_hash_key *key = (sip_hash_key*)v;
+ const sip_hash_key *key = v;
guint value = strlen(key->call_id);
gint chars_to_use = value / 4;