aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-aoe.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-aoe.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-aoe.c')
-rw-r--r--epan/dissectors/packet-aoe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-aoe.c b/epan/dissectors/packet-aoe.c
index 0a6196a9da..4efeaac4bb 100644
--- a/epan/dissectors/packet-aoe.c
+++ b/epan/dissectors/packet-aoe.c
@@ -202,7 +202,7 @@ ata_cmd_equal_matched(gconstpointer k1, gconstpointer k2)
static guint
ata_cmd_hash_unmatched(gconstpointer k)
{
- const ata_info_t *key = (ata_info_t *)k;
+ const ata_info_t *key = k;
return key->tag;
}
@@ -210,8 +210,8 @@ ata_cmd_hash_unmatched(gconstpointer k)
static gint
ata_cmd_equal_unmatched(gconstpointer k1, gconstpointer k2)
{
- const ata_info_t *key1 = (ata_info_t *)k1;
- const ata_info_t *key2 = (ata_info_t *)k2;
+ const ata_info_t *key1 = k1;
+ const ata_info_t *key2 = k2;
return (key1->tag==key2->tag)&&(key1->conversation==key2->conversation);
}