forked from osmocom/wireshark
Revert "[MSVC 2015] Fix errors seen with the released version by reverting the code to what failed on the RC version *sigh*"
Reverted commit break DecodeAs for Bluetooth, also caused crashes.
This reverts commit 2221153a9c
.
Change-Id: Idb91747b986f110fffa3444f8c52d800c128e141
Reviewed-on: https://code.wireshark.org/review/9877
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
53a80334bc
commit
3b2e6d9610
|
@ -1412,9 +1412,14 @@ static void btatt_handle_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btatt_handle_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
return (gpointer)p_get_proto_data(pinfo->pool, pinfo, proto_btatt, PROTO_DATA_BTATT_HANDLE);
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btatt, PROTO_DATA_BTATT_HANDLE);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void btatt_uuid16_prompt(packet_info *pinfo, gchar* result)
|
||||
|
@ -1430,9 +1435,14 @@ static void btatt_uuid16_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btatt_uuid16_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
return (gpointer)p_get_proto_data(pinfo->pool, pinfo, proto_btatt, PROTO_DATA_BTATT_UUID16);
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btatt, PROTO_DATA_BTATT_UUID16);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void btatt_uuid128_prompt(packet_info *pinfo, gchar* result)
|
||||
|
|
|
@ -417,9 +417,14 @@ static void btl2cap_cid_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btl2cap_cid_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
return (gpointer)p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, PROTO_DATA_BTL2CAP_CID);
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, PROTO_DATA_BTL2CAP_CID);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void btl2cap_psm_prompt(packet_info *pinfo, gchar* result)
|
||||
|
@ -435,9 +440,14 @@ static void btl2cap_psm_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btl2cap_psm_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
return (gpointer)p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, PROTO_DATA_BTL2CAP_PSM);
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, PROTO_DATA_BTL2CAP_PSM);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static guint16
|
||||
|
|
|
@ -1126,9 +1126,14 @@ static void btobex_profile_prompt(packet_info *pinfo _U_, gchar* result)
|
|||
|
||||
static gpointer btobex_profile_value(packet_info *pinfo _U_)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
return (gpointer)p_get_proto_data(pinfo->pool, pinfo, proto_btobex, PROTO_DATA_BTOBEX_PROFILE);
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btobex, PROTO_DATA_BTOBEX_PROFILE);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -279,9 +279,14 @@ static void btrfcomm_directed_channel_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btrfcomm_directed_channel_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
return (gpointer)p_get_proto_data(pinfo->pool, pinfo, proto_btrfcomm, PROTO_DATA_BTRFCOMM_DIRECTED_CHANNEL);
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btrfcomm, PROTO_DATA_BTRFCOMM_DIRECTED_CHANNEL);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static dissector_handle_t
|
||||
|
|
|
@ -193,7 +193,7 @@ static guint
|
|||
circuit_chain_hash (gconstpointer v)
|
||||
{
|
||||
const circuit_chain_key *key = (const circuit_chain_key *)v;
|
||||
guint hash_val = (GPOINTER_TO_UINT(key->call)) ^ (((guint32)key->vc) << 16);
|
||||
guint hash_val = ((guint32)(unsigned long)(key->call))^(((guint32)key->vc) << 16);
|
||||
return hash_val;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue