From dc0fc1896e6fd6760ce052ed522a5ae010b211ce Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Fri, 24 Dec 2004 23:17:38 +0000 Subject: use GLib's pointer to int conversion macros to prevent compiler warnings svn path=/trunk/; revision=12830 --- epan/dissectors/packet-dcerpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-dcerpc.c') diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c index abd38946af..2e33fedc72 100644 --- a/epan/dissectors/packet-dcerpc.c +++ b/epan/dissectors/packet-dcerpc.c @@ -860,14 +860,14 @@ static guint dcerpc_cn_call_hash (gconstpointer k) { const dcerpc_cn_call_key *key = (const dcerpc_cn_call_key *)k; - return ((guint32)key->conv) + key->call_id + key->smb_fid; + return GPOINTER_TO_UINT(key->conv) + key->call_id + key->smb_fid; } static guint dcerpc_dg_call_hash (gconstpointer k) { const dcerpc_dg_call_key *key = (const dcerpc_dg_call_key *)k; - return (((guint32)key->conv) + key->seqnum + key->act_id.Data1 + return (GPOINTER_TO_UINT(key->conv) + key->seqnum + key->act_id.Data1 + (key->act_id.Data2 << 16) + key->act_id.Data3 + (key->act_id.Data4[0] << 24) + (key->act_id.Data4[1] << 16) + (key->act_id.Data4[2] << 8) + (key->act_id.Data4[3] << 0) -- cgit v1.2.3