diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-06 16:50:13 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-06 16:50:13 +0000 |
commit | 501f95371425d2ec0e3034f90875ddb3a1fd91db (patch) | |
tree | d377a635fd6375bfcf6aa79b35eb0df20984cc0c /asn1/qsig | |
parent | 74c11bb5abf77875b61f8b07b9ddc407073d03d4 (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
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39294 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'asn1/qsig')
-rw-r--r-- | asn1/qsig/packet-qsig-template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/asn1/qsig/packet-qsig-template.c b/asn1/qsig/packet-qsig-template.c index c80225fa35..30d80b10b8 100644 --- a/asn1/qsig/packet-qsig-template.c +++ b/asn1/qsig/packet-qsig-template.c @@ -525,14 +525,14 @@ dissect_qsig_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /*--- dissect_qsig_transit_counter_ie ---------------------------------------*/ static int dissect_qsig_transit_counter_ie(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int length _U_) { - proto_tree_add_item(tree, hf_qsig_tc, tvb, offset, 1, FALSE); + proto_tree_add_item(tree, hf_qsig_tc, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; return offset; } /*--- dissect_qsig_party_category_ie ----------------------------------------*/ static int dissect_qsig_party_category_ie(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int length _U_) { - proto_tree_add_item(tree, hf_qsig_pc, tvb, offset, 1, FALSE); + proto_tree_add_item(tree, hf_qsig_pc, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; return offset; } @@ -557,9 +557,9 @@ dissect_qsig_ie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int codeset val_to_str(ie_type, VALS(qsig_str_ie_type[codeset]), "unknown (0x%02X)")); ie_tree = proto_item_add_subtree(ti_ie, ett_qsig_ie); proto_tree_add_item(ie_tree, *hf_qsig_ie_type_arr[codeset], tvb, offset, 1, FALSE); - hidden_item = proto_tree_add_item(ie_tree, hf_qsig_ie_type, tvb, offset, 1, FALSE); + hidden_item = proto_tree_add_item(ie_tree, hf_qsig_ie_type, tvb, offset, 1, ENC_BIG_ENDIAN); PROTO_ITEM_SET_HIDDEN(hidden_item); - proto_tree_add_item(ie_tree, hf_qsig_ie_len, tvb, offset + 1, 1, FALSE); + proto_tree_add_item(ie_tree, hf_qsig_ie_len, tvb, offset + 1, 1, ENC_BIG_ENDIAN); offset += 2; if (tvb_length_remaining(tvb, offset) <= 0) return; |