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-smb-sidsnooping.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-smb-sidsnooping.c')
-rw-r--r-- | epan/dissectors/packet-smb-sidsnooping.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-smb-sidsnooping.c b/epan/dissectors/packet-smb-sidsnooping.c index 0ee0d4f999..bf3929c109 100644 --- a/epan/dissectors/packet-smb-sidsnooping.c +++ b/epan/dissectors/packet-smb-sidsnooping.c @@ -147,15 +147,15 @@ samr_query_dispinfo(void *dummy _U_, packet_info *pinfo, epan_dissect_t *edt, vo } fi=gp->pdata[0]; - old_ctx=g_hash_table_lookup(ctx_handle_table, (gpointer)pinfo->fd->num); + old_ctx=g_hash_table_lookup(ctx_handle_table, GINT_TO_POINTER(pinfo->fd->num)); if(old_ctx){ - g_hash_table_remove(ctx_handle_table, (gpointer)pinfo->fd->num); + g_hash_table_remove(ctx_handle_table, GINT_TO_POINTER(pinfo->fd->num)); } if(!old_ctx){ old_ctx=g_mem_chunk_alloc(ctx_handle_chunk); memcpy(old_ctx, fi->value.value.bytes->data, 20); } - g_hash_table_insert(ctx_handle_table, (gpointer)pinfo->fd->num, old_ctx); + g_hash_table_insert(ctx_handle_table, GINT_TO_POINTER(pinfo->fd->num), old_ctx); return 0; } @@ -164,7 +164,7 @@ samr_query_dispinfo(void *dummy _U_, packet_info *pinfo, epan_dissect_t *edt, vo return 0; } - old_ctx=g_hash_table_lookup(ctx_handle_table, (gpointer)ri->call_data->req_frame); + old_ctx=g_hash_table_lookup(ctx_handle_table, GINT_TO_POINTER(ri->call_data->req_frame)); if(!old_ctx){ return 0; } @@ -313,8 +313,8 @@ free_all_ctx_handle(gpointer key_arg _U_, gpointer value _U_, gpointer user_data static gint ctx_handle_equal(gconstpointer k1, gconstpointer k2) { - int sn1 = (int)k1; - int sn2 = (int)k2; + int sn1 = GPOINTER_TO_INT(k1); + int sn2 = GPOINTER_TO_INT(k2); return sn1==sn2; } @@ -322,7 +322,7 @@ ctx_handle_equal(gconstpointer k1, gconstpointer k2) static guint ctx_handle_hash(gconstpointer k) { - int sn = (int)k; + int sn = GPOINTER_TO_INT(k); return sn; } |