diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-01-01 23:21:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-01-01 23:21:05 +0000 |
commit | 3a8f2634bb1500ae6d00c1504c419f6aa28ab5c1 (patch) | |
tree | 6a3c1a2614c95bd86220a59b48a8ce69a8d65833 /plugins | |
parent | 0067b4b94e59cf3c72bc5283ba0302e651f81b87 (diff) |
When computing a hash value based on, among other things, a
conversation, use the "index" member of the conversation_t - that lets
you get a value that fits in a guint, but without provoking the warning
you might get from a compiler if you cast a pointer to the conversation
to a guint.
svn path=/trunk/; revision=12916
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mgcp/packet-mgcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mgcp/packet-mgcp.c b/plugins/mgcp/packet-mgcp.c index 7c5ef9c21e..231bed3a62 100644 --- a/plugins/mgcp/packet-mgcp.c +++ b/plugins/mgcp/packet-mgcp.c @@ -280,7 +280,7 @@ mgcp_call_hash(gconstpointer k) { const mgcp_call_info_key* key = (const mgcp_call_info_key*) k; - return key->transid + (guint32)(key->conversation); + return key->transid + key->conversation->index; } /* |