diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-12-25 13:49:30 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-12-25 13:49:30 +0000 |
commit | fcda9bb26c5ca07b1458a847e616d33dd82a56cf (patch) | |
tree | 408c4b08d73977545997409aa5dfb93f0a35e74f /epan/dissectors/packet-aoe.c | |
parent | d946af6ef2673cae26bac36aa7e7ec2654523644 (diff) |
a lot of warnings removed, most of them about pointer to int casts without using the appropriate GLib macros
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12832 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-aoe.c')
-rw-r--r-- | epan/dissectors/packet-aoe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-aoe.c b/epan/dissectors/packet-aoe.c index a01a024cc1..4fdb9e4d3a 100644 --- a/epan/dissectors/packet-aoe.c +++ b/epan/dissectors/packet-aoe.c @@ -190,7 +190,7 @@ static GHashTable *ata_cmd_matched; static guint ata_cmd_hash_matched(gconstpointer k) { - return (guint)k; + return GPOINTER_TO_UINT(k); } static gint @@ -267,12 +267,12 @@ dissect_ata_pdu(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, if(ata_info){ ata_info->response_frame=pinfo->fd->num; g_hash_table_remove(ata_cmd_unmatched, ata_info); - g_hash_table_insert(ata_cmd_matched, (void *)ata_info->request_frame, ata_info); - g_hash_table_insert(ata_cmd_matched, (void *)ata_info->response_frame, ata_info); + g_hash_table_insert(ata_cmd_matched, GUINT_TO_POINTER(ata_info->request_frame), ata_info); + g_hash_table_insert(ata_cmd_matched, GUINT_TO_POINTER(ata_info->response_frame), ata_info); } } } else { - ata_info=g_hash_table_lookup(ata_cmd_matched, (void *)pinfo->fd->num); + ata_info=g_hash_table_lookup(ata_cmd_matched, GUINT_TO_POINTER(pinfo->fd->num)); } if(ata_info){ |