aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sv.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-06 16:50:13 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-06 16:50:13 +0000
commite2996ceabe94206aae66b54caac53c7e35cb325d (patch)
treed377a635fd6375bfcf6aa79b35eb0df20984cc0c /epan/dissectors/packet-sv.c
parent594f1efcdd976386dcdd918a11271d353af76270 (diff)
Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1 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=39294
Diffstat (limited to 'epan/dissectors/packet-sv.c')
-rw-r--r--epan/dissectors/packet-sv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-sv.c b/epan/dissectors/packet-sv.c
index 284b2555bc..80172d9432 100644
--- a/epan/dissectors/packet-sv.c
+++ b/epan/dissectors/packet-sv.c
@@ -199,7 +199,7 @@ dissect_PhsMeas1(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tv
value = tvb_get_ntohl(tvb, offset);
qual = tvb_get_ntohl(tvb, offset + 4);
- proto_tree_add_item(subtree, hf_sv_phmeas_instmag_i, tvb, offset, 4, FALSE);
+ proto_tree_add_item(subtree, hf_sv_phmeas_instmag_i, tvb, offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_bitmask(subtree, tvb, offset + 4, hf_sv_phsmeas_q, ett_phsmeas_q, q_flags, FALSE);
if (i < IEC61850_SV_MAX_PHSMEAS_ENTRIES) {
@@ -386,19 +386,19 @@ dissect_sv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
/* APPID */
if (tree && tvb_reported_length_remaining(tvb, offset) >= 2)
- proto_tree_add_item(tree, hf_sv_appid, tvb, offset, 2, FALSE);
+ proto_tree_add_item(tree, hf_sv_appid, tvb, offset, 2, ENC_BIG_ENDIAN);
/* Length */
if (tree && tvb_reported_length_remaining(tvb, offset) >= 4)
- proto_tree_add_item(tree, hf_sv_length, tvb, offset + 2, 2, FALSE);
+ proto_tree_add_item(tree, hf_sv_length, tvb, offset + 2, 2, ENC_BIG_ENDIAN);
/* Reserved 1 */
if (tree && tvb_reported_length_remaining(tvb, offset) >= 6)
- proto_tree_add_item(tree, hf_sv_reserve1, tvb, offset + 4, 2, FALSE);
+ proto_tree_add_item(tree, hf_sv_reserve1, tvb, offset + 4, 2, ENC_BIG_ENDIAN);
/* Reserved 2 */
if (tree && tvb_reported_length_remaining(tvb, offset) >= 8)
- proto_tree_add_item(tree, hf_sv_reserve2, tvb, offset + 6, 2, FALSE);
+ proto_tree_add_item(tree, hf_sv_reserve2, tvb, offset + 6, 2, ENC_BIG_ENDIAN);
offset = 8;
while (tree && tvb_reported_length_remaining(tvb, offset) > 0){