diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-09-27 12:04:29 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-09-27 12:04:29 +0000 |
commit | fd78ef1acbf29a1ddfba9f47ec50a50c8f2225d6 (patch) | |
tree | bdf8ef520c67daad4e1da2d82d71b90601fc0851 /epan/proto.c | |
parent | eac43304abc49c4f800f0c9e74b7165474ec5ced (diff) |
In proto_tree_add_bits... use const guint encoding to be consistent with proto_tree_add_item().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39163 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/proto.c b/epan/proto.c index 0a0b92f758..e83859d8bf 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -7212,13 +7212,13 @@ proto_tree_add_bitmask_text(proto_tree *parent_tree, tvbuff_t *tvb, proto_item * proto_tree_add_bits_item(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const gint bit_offset, const gint no_of_bits, - const gboolean little_endian) + const guint encoding) { header_field_info *hfinfo; TRY_TO_FAKE_THIS_ITEM(tree, hf_index, hfinfo); - return proto_tree_add_bits_ret_val(tree, hf_index, tvb, bit_offset, no_of_bits, NULL, little_endian); + return proto_tree_add_bits_ret_val(tree, hf_index, tvb, bit_offset, no_of_bits, NULL, encoding); } /* @@ -7230,7 +7230,7 @@ proto_tree_add_bits_item(proto_tree *tree, const int hf_index, tvbuff_t *tvb, static proto_item * _proto_tree_add_bits_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const gint bit_offset, const gint no_of_bits, - guint64 *return_value, const gboolean little_endian) + guint64 *return_value, const guint encoding) { gint offset; guint length; @@ -7267,11 +7267,11 @@ _proto_tree_add_bits_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb if (no_of_bits < 9){ value = tvb_get_bits8(tvb, bit_offset, no_of_bits); }else if(no_of_bits < 17){ - value = tvb_get_bits16(tvb, bit_offset, no_of_bits, little_endian); + value = tvb_get_bits16(tvb, bit_offset, no_of_bits, encoding); }else if(no_of_bits < 33){ - value = tvb_get_bits32(tvb, bit_offset, no_of_bits, little_endian); + value = tvb_get_bits32(tvb, bit_offset, no_of_bits, encoding); }else if(no_of_bits < 65){ - value = tvb_get_bits64(tvb, bit_offset, no_of_bits, little_endian); + value = tvb_get_bits64(tvb, bit_offset, no_of_bits, encoding); }else{ DISSECTOR_ASSERT_NOT_REACHED(); return NULL; @@ -7352,11 +7352,11 @@ _proto_tree_add_bits_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb proto_item * proto_tree_add_bits_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const gint bit_offset, const gint no_of_bits, - guint64 *return_value, const gboolean little_endian) + guint64 *return_value, const guint encoding) { proto_item *item; - if ((item = _proto_tree_add_bits_ret_val(tree, hf_index, tvb, bit_offset, no_of_bits, return_value, little_endian))) { + if ((item = _proto_tree_add_bits_ret_val(tree, hf_index, tvb, bit_offset, no_of_bits, return_value, encoding))) { FI_SET_FLAG(PNODE_FINFO(item), FI_BITS_OFFSET(bit_offset)); FI_SET_FLAG(PNODE_FINFO(item), FI_BITS_SIZE(no_of_bits)); } |