aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-12-24 23:17:38 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-12-24 23:17:38 +0000
commitdc0fc1896e6fd6760ce052ed522a5ae010b211ce (patch)
treeb4f33735858274052bfa0521e5d785c53a9a8def /epan/dissectors/packet-dcerpc.c
parented556cd7c4940403a6326ad790bc1353e958ae21 (diff)
use GLib's pointer to int conversion macros to prevent compiler warnings
svn path=/trunk/; revision=12830
Diffstat (limited to 'epan/dissectors/packet-dcerpc.c')
-rw-r--r--epan/dissectors/packet-dcerpc.c4
1 files changed, 2 insertions, 2 deletions
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)