aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-aoe.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-12-25 13:49:30 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-12-25 13:49:30 +0000
commit78ff68d4b58f3887139b2d1fd6fec5c8d2658aa7 (patch)
tree408c4b08d73977545997409aa5dfb93f0a35e74f /epan/dissectors/packet-aoe.c
parente8459f4ea1a08f7b661d8717db1a9b8125860142 (diff)
a lot of warnings removed, most of them about pointer to int casts without using the appropriate GLib macros
svn path=/trunk/; revision=12832
Diffstat (limited to 'epan/dissectors/packet-aoe.c')
-rw-r--r--epan/dissectors/packet-aoe.c8
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){