summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-btsdp.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-06 03:35:44 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-06 03:35:44 +0000
commit4e57694d4aa2a652077e01fd6867a8def7ffdb15 (patch)
tree0896080ffb80104f2c23e3f8c273080088cff7cd /epan/dissectors/packet-btsdp.c
parentaae5eb7de0e2fd5a257d143852b832039ebb171e (diff)
downloadwireshark-4e57694d4aa2a652077e01fd6867a8def7ffdb15.tar.gz
Convert 'encoding' parameter of certain proto_tree_add_item() calls in non-autogenerated epan/dissectors:
Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE svn path=/trunk/; revision=39288
Diffstat (limited to 'epan/dissectors/packet-btsdp.c')
-rw-r--r--epan/dissectors/packet-btsdp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-btsdp.c b/epan/dissectors/packet-btsdp.c
index bd2bf63e2e..c6f966e640 100644
--- a/epan/dissectors/packet-btsdp.c
+++ b/epan/dissectors/packet-btsdp.c
@@ -253,7 +253,7 @@ dissect_attribute_id_list(proto_tree *t, tvbuff_t *tvb, int offset, packet_info
static int
dissect_sdp_error_response(proto_tree *t, tvbuff_t *tvb, int offset) {
- proto_tree_add_item(t, hf_error_code, tvb, offset, 2, FALSE);
+ proto_tree_add_item(t, hf_error_code, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
return offset;
@@ -663,7 +663,7 @@ dissect_sdp_service_attribute_list_array(proto_tree *tree, tvbuff_t *tvb, int of
static int
dissect_sdp_service_search_attribute_response(proto_tree *tree, tvbuff_t *tvb, int offset, packet_info *pinfo, guint32 token)
{
- proto_tree_add_item(tree, hf_ssares_al_bytecount, tvb, offset, 2, FALSE);
+ proto_tree_add_item(tree, hf_ssares_al_bytecount, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
offset += dissect_sdp_service_attribute_list_array(tree, tvb, offset, pinfo, token);
@@ -828,11 +828,11 @@ dissect_sdp_service_search_response(proto_tree *t, tvbuff_t *tvb, int offset)
proto_item *ti;
gint curr_count;
- proto_tree_add_item(t, hf_ssr_total_count, tvb, offset, 2, FALSE);
+ proto_tree_add_item(t, hf_ssr_total_count, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
curr_count = tvb_get_ntohs(tvb, offset);
- proto_tree_add_item(t, hf_ssr_current_count, tvb, offset, 2, FALSE);
+ proto_tree_add_item(t, hf_ssr_current_count, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
ti = proto_tree_add_text(t, tvb, offset,
@@ -870,7 +870,7 @@ dissect_btsdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* pdu id */
pdu = tvb_get_guint8(tvb, offset);
- proto_tree_add_item(st, hf_pduid, tvb, offset, 1, FALSE);
+ proto_tree_add_item(st, hf_pduid, tvb, offset, 1, ENC_BIG_ENDIAN);
pdu_name = val_to_str(pdu, vs_pduid, "Unknown");
switch (pinfo->p2p_dir) {
@@ -896,11 +896,11 @@ dissect_btsdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
offset++;
/* tid */
- proto_tree_add_item(st, hf_tid, tvb, offset, 2, FALSE);
+ proto_tree_add_item(st, hf_tid, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* plen */
- proto_tree_add_item(st, hf_plen, tvb, offset, 2, FALSE);
+ proto_tree_add_item(st, hf_plen, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
acl_handle = ((btl2cap_data_t *) pinfo->private_data)->chandle;