diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-12-31 02:08:01 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-12-31 02:08:01 +0000 |
commit | 8ff0880c79f8aea4f6dbbe973f454f3ab0d5c39d (patch) | |
tree | e4a12e1bded25940624af6226616ef7df7f60812 /epan/dissectors/packet-aoe.c | |
parent | 3e98d2cdcd1330ac43ac406176cc74eb66fef785 (diff) |
Don't assign the const pointers passed to hash routines to non-const
pointers.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12890 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-aoe.c')
-rw-r--r-- | epan/dissectors/packet-aoe.c | 6 |
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); } |