diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-06 03:35:44 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-06 03:35:44 +0000 |
commit | 4e57694d4aa2a652077e01fd6867a8def7ffdb15 (patch) | |
tree | 0896080ffb80104f2c23e3f8c273080088cff7cd /epan/dissectors/packet-q931.c | |
parent | aae5eb7de0e2fd5a257d143852b832039ebb171e (diff) |
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-q931.c')
-rw-r--r-- | epan/dissectors/packet-q931.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-q931.c b/epan/dissectors/packet-q931.c index 5a20758f6e..b503332889 100644 --- a/epan/dissectors/packet-q931.c +++ b/epan/dissectors/packet-q931.c @@ -517,7 +517,7 @@ dissect_q931_segmented_message_ie(tvbuff_t *tvb, int offset, int len, "Not first segment: %u segments remaining", tvb_get_guint8(tvb, offset) & 0x7F); } - proto_tree_add_item(tree, hf_q931_segment_type, tvb, offset + 1, 1, FALSE); + proto_tree_add_item(tree, hf_q931_segment_type, tvb, offset + 1, 1, ENC_BIG_ENDIAN); } /* @@ -1554,9 +1554,9 @@ dissect_q931_channel_identification_ie(tvbuff_t *tvb, int offset, int len, proto_tree_add_item(tree, hf_q931_channel_dchan, tvb, offset, 1, FALSE); if (octet & Q931_NOT_BASIC_CHANNEL) { - proto_tree_add_item(tree, hf_q931_channel_selection_pri, tvb, offset, 1, FALSE); + proto_tree_add_item(tree, hf_q931_channel_selection_pri, tvb, offset, 1, ENC_BIG_ENDIAN); } else { - proto_tree_add_item(tree, hf_q931_channel_selection_bri, tvb, offset, 1, FALSE); + proto_tree_add_item(tree, hf_q931_channel_selection_bri, tvb, offset, 1, ENC_BIG_ENDIAN); } offset += 1; len -= 1; @@ -1602,7 +1602,7 @@ dissect_q931_channel_identification_ie(tvbuff_t *tvb, int offset, int len, return; } proto_tree_add_item(tree, hf_q931_channel_map, tvb, offset, 1, FALSE); - proto_tree_add_item(tree, hf_q931_channel_element_type, tvb, offset, 1, FALSE); + proto_tree_add_item(tree, hf_q931_channel_element_type, tvb, offset, 1, ENC_BIG_ENDIAN); offset += 1; len -= 1; @@ -1624,7 +1624,7 @@ dissect_q931_channel_identification_ie(tvbuff_t *tvb, int offset, int len, octet2 = tvb_get_guint8(tvb, offset); proto_tree_add_item(tree, hf_q931_extension_ind, tvb, offset, 1, FALSE); - proto_tree_add_item(tree,hf_q931_channel_number,tvb,offset,1,FALSE); + proto_tree_add_item(tree,hf_q931_channel_number,tvb,offset,1,ENC_BIG_ENDIAN); offset += 1; len -= 1; @@ -2635,9 +2635,9 @@ dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, } if (q931_tree != NULL){ if (prot_discr == NLPID_DMS) - proto_tree_add_item(q931_tree, hf_q931_maintenance_message_type, tvb, offset, 1, FALSE); + proto_tree_add_item(q931_tree, hf_q931_maintenance_message_type, tvb, offset, 1, ENC_BIG_ENDIAN); else - proto_tree_add_item(q931_tree, hf_q931_message_type, tvb, offset, 1, FALSE); + proto_tree_add_item(q931_tree, hf_q931_message_type, tvb, offset, 1, ENC_BIG_ENDIAN); } offset += 1; |