diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-11-20 20:07:42 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-11-20 20:07:42 +0000 |
commit | 564b444eb33dc844f7ef2d8034230ef130e49fe7 (patch) | |
tree | 392d5325aef81fadf5531cb107db7b1e0b58271d /epan/dissectors/packet-btrfcomm.c | |
parent | 61a4e7d46d381c0650412368584646b9ceb24773 (diff) |
Add explicit casts to please GCC
svn path=/trunk/; revision=53449
Diffstat (limited to 'epan/dissectors/packet-btrfcomm.c')
-rw-r--r-- | epan/dissectors/packet-btrfcomm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-btrfcomm.c b/epan/dissectors/packet-btrfcomm.c index e6bf11b0d6..fb8bb0392d 100644 --- a/epan/dissectors/packet-btrfcomm.c +++ b/epan/dissectors/packet-btrfcomm.c @@ -459,7 +459,7 @@ dissect_btrfcomm_address(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tr proto_item_append_text(dlci_item, " (Direction: %d, Channel: %u)", dlci & 0x01, channel); if (p_get_proto_data(pinfo->fd, proto_btrfcomm, BTRFCOMM_CHANNEL_CONV ) == NULL) { - p_add_proto_data(pinfo->fd, proto_btrfcomm, BTRFCOMM_CHANNEL_CONV, GUINT_TO_POINTER(channel)); + p_add_proto_data(pinfo->fd, proto_btrfcomm, BTRFCOMM_CHANNEL_CONV, GUINT_TO_POINTER((guint)channel)); } dlci_tree = proto_item_add_subtree(dlci_item, ett_dlci); @@ -785,7 +785,7 @@ dissect_btrfcomm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data rfcomm_data->remote_bd_addr_id = l2cap_data->remote_bd_addr_id; if (p_get_proto_data(pinfo->fd, proto_btrfcomm, BTRFCOMM_SERVICE_CONV ) == NULL) { - p_add_proto_data(pinfo->fd, proto_btrfcomm, BTRFCOMM_SERVICE_CONV, GUINT_TO_POINTER(service_info->uuid.bt_uuid)); + p_add_proto_data(pinfo->fd, proto_btrfcomm, BTRFCOMM_SERVICE_CONV, GUINT_TO_POINTER((guint)service_info->uuid.bt_uuid)); } if (!dissector_try_uint_new(rfcomm_channel_dissector_table, (guint32) dlci >> 1, |