forked from osmocom/wireshark
[MSVC2015] TRy to fix Warnings turned errors.
Change-Id: I1156e66daad84004f4f7acae0175fcbb475db71a Reviewed-on: https://code.wireshark.org/review/8760 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
539418c917
commit
8d78077d0d
|
@ -1412,14 +1412,9 @@ static void btatt_handle_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btatt_handle_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btatt, PROTO_DATA_BTATT_HANDLE);
|
||||
return (gpointer) 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)
|
||||
|
@ -1435,14 +1430,9 @@ static void btatt_uuid16_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btatt_uuid16_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btatt, PROTO_DATA_BTATT_UUID16);
|
||||
return (gpointer) 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)
|
||||
|
|
|
@ -116,14 +116,9 @@ static void btavctp_pid_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btavctp_pid_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btavctp, BTAVCTP_PID_CONV);
|
||||
return (gpointer) p_get_proto_data(pinfo->pool, pinfo, proto_btavctp, BTAVCTP_PID_CONV);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static gint
|
||||
|
|
|
@ -419,14 +419,9 @@ static void btl2cap_cid_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btl2cap_cid_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, BTL2CAP_CID_CONV);
|
||||
return (gpointer)p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, BTL2CAP_CID_CONV);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void btl2cap_psm_prompt(packet_info *pinfo, gchar* result)
|
||||
|
@ -442,14 +437,9 @@ static void btl2cap_psm_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btl2cap_psm_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, BTL2CAP_PSM_CONV);
|
||||
return (gpointer) p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, BTL2CAP_PSM_CONV);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void btl2cap_serv_prompt(packet_info *pinfo, gchar* result)
|
||||
|
@ -465,14 +455,9 @@ static void btl2cap_serv_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btl2cap_serv_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, BTL2CAP_SERV_CONV);
|
||||
return (gpointer) p_get_proto_data(pinfo->pool, pinfo, proto_btl2cap, BTL2CAP_SERV_CONV);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static guint16
|
||||
|
|
|
@ -1126,14 +1126,9 @@ static void btobex_profile_prompt(packet_info *pinfo _U_, gchar* result)
|
|||
|
||||
static gpointer btobex_profile_value(packet_info *pinfo _U_)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btobex, PROTO_DATA_BTOBEX_PROFILE);
|
||||
return (gpointer)p_get_proto_data(pinfo->pool, pinfo, proto_btobex, PROTO_DATA_BTOBEX_PROFILE);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -281,14 +281,9 @@ static void btrfcomm_serv_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btrfcomm_serv_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btrfcomm, BTRFCOMM_SERVICE_CONV);
|
||||
return (gpointer)p_get_proto_data(pinfo->pool, pinfo, proto_btrfcomm, BTRFCOMM_SERVICE_CONV);
|
||||
|
||||
if (value_data)
|
||||
return (gpointer) *value_data;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void btrfcomm_chan_prompt(packet_info *pinfo, gchar* result)
|
||||
|
@ -304,14 +299,9 @@ static void btrfcomm_chan_prompt(packet_info *pinfo, gchar* result)
|
|||
|
||||
static gpointer btrfcomm_chan_value(packet_info *pinfo)
|
||||
{
|
||||
gulong *value_data;
|
||||
|
||||
value_data = (gulong *) p_get_proto_data(pinfo->pool, pinfo, proto_btrfcomm, BTRFCOMM_CHANNEL_CONV);
|
||||
return (gpointer) p_get_proto_data(pinfo->pool, pinfo, proto_btrfcomm, BTRFCOMM_CHANNEL_CONV);
|
||||
|
||||
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 = ((guint32)(unsigned long)(key->call))^(((guint32)key->vc) << 16);
|
||||
guint hash_val = (GPOINTER_TO_UINT(key->call))^(((guint32)key->vc) << 16);
|
||||
return hash_val;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue