aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-x224.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-x224.c
parentaae5eb7de0e2fd5a257d143852b832039ebb171e (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-x224.c')
-rw-r--r--epan/dissectors/packet-x224.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-x224.c b/epan/dissectors/packet-x224.c
index f93031d5f5..6900cfbbcb 100644
--- a/epan/dissectors/packet-x224.c
+++ b/epan/dissectors/packet-x224.c
@@ -106,12 +106,12 @@ dissect_x224_cr(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *tvb, int off
offset+=2;
/*SRC-REF*/
- proto_tree_add_item(tree, hf_x224_src_ref, tvb, offset, 2, FALSE);
+ proto_tree_add_item(tree, hf_x224_src_ref, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* class options */
/*class = tvb_get_guint8(tvb, offset);*/
- proto_tree_add_item(tree, hf_x224_class, tvb, offset, 1, FALSE);
+ proto_tree_add_item(tree, hf_x224_class, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
if(tvb_length_remaining(tvb, offset) > 0) {
@@ -130,16 +130,16 @@ dissect_x224_cc(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *tvb, int off
guint8 class;
/*DST-REF */
- proto_tree_add_item(tree, hf_x224_dst_ref, tvb, offset, 2, FALSE);
+ proto_tree_add_item(tree, hf_x224_dst_ref, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/*SRC-REF*/
- proto_tree_add_item(tree, hf_x224_src_ref, tvb, offset, 2, FALSE);
+ proto_tree_add_item(tree, hf_x224_src_ref, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
/* class options */
class = tvb_get_guint8(tvb, offset);
- proto_tree_add_item(tree, hf_x224_class, tvb, offset, 1, FALSE);
+ proto_tree_add_item(tree, hf_x224_class, tvb, offset, 1, ENC_BIG_ENDIAN);
x224_info->class = class;
offset+=1;
@@ -157,7 +157,7 @@ dissect_x224_dt(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *tvb, int off
case 3:
case 4:
/*DST-REF */
- proto_tree_add_item(tree, hf_x224_dst_ref, tvb, offset, 2, FALSE);
+ proto_tree_add_item(tree, hf_x224_dst_ref, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+=2;
break;
}
@@ -168,7 +168,7 @@ dissect_x224_dt(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *tvb, int off
/* EOT / NR */
proto_tree_add_item(tree, hf_x224_eot, tvb, offset, 1, FALSE);
- proto_tree_add_item(tree, hf_x224_nr, tvb, offset, 1, FALSE);
+ proto_tree_add_item(tree, hf_x224_nr, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
@@ -199,12 +199,12 @@ dissect_x224(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
/* length indicator */
- proto_tree_add_item(tree, hf_x224_length, tvb, offset, 1, FALSE);
+ proto_tree_add_item(tree, hf_x224_length, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
/* code */
code = tvb_get_guint8(tvb, offset);
- proto_tree_add_item(tree, hf_x224_code, tvb, offset, 1, FALSE);
+ proto_tree_add_item(tree, hf_x224_code, tvb, offset, 1, ENC_BIG_ENDIAN);
offset+=1;
if (check_col(pinfo->cinfo, COL_INFO)) {