diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-12 22:25:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-12 22:25:29 +0000 |
commit | 268f5c9f51d6469b16afa908167a52107b2235d9 (patch) | |
tree | 774d22671783def4c7ea4701223ce81b5a4cdf2c /epan/dissectors/packet-ziop.c | |
parent | f2cd5350f68c1b299841258293d4e8440bf4d109 (diff) |
Get rid of remaining Booleans-as-encoding-arguments in
proto_tree_add_item() calls.
Replaced the "little_endian" Boolean value with an "byte_order" value
containing the setting of the byte-order ENC_ bit.
svn path=/trunk/; revision=42607
Diffstat (limited to 'epan/dissectors/packet-ziop.c')
-rw-r--r-- | epan/dissectors/packet-ziop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-ziop.c b/epan/dissectors/packet-ziop.c index 3e75d75914..752fa9364d 100644 --- a/epan/dissectors/packet-ziop.c +++ b/epan/dissectors/packet-ziop.c @@ -242,7 +242,7 @@ dissect_ziop (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) { if (tree) { guint8 flags; - gboolean little_endian; + guint byte_order; emem_strbuf_t *flags_strbuf = ep_strbuf_new_label("none"); ti = proto_tree_add_item (tree, proto_ziop, tvb, 0, -1, ENC_NA); @@ -256,7 +256,7 @@ dissect_ziop (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) { offset++; flags = tvb_get_guint8(tvb, offset); - little_endian = flags & 0x01; + byte_order = (flags & 0x01) ? ENC_LITTLE_ENDIAN : ENC_BIG_ENDIAN; if (flags & 0x01) { ep_strbuf_printf(flags_strbuf, "little-endian"); @@ -268,11 +268,11 @@ dissect_ziop (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) { proto_tree_add_item(ziop_tree, hf_ziop_message_type, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; - proto_tree_add_item(ziop_tree, hf_ziop_message_size, tvb, offset, 4, little_endian); + proto_tree_add_item(ziop_tree, hf_ziop_message_size, tvb, offset, 4, byte_order); offset += 4; - proto_tree_add_item(ziop_tree, hf_ziop_compressor_id, tvb, offset, 2, little_endian); + proto_tree_add_item(ziop_tree, hf_ziop_compressor_id, tvb, offset, 2, byte_order); offset += 4; - proto_tree_add_item(ziop_tree, hf_ziop_original_length, tvb, offset, 4, little_endian); + proto_tree_add_item(ziop_tree, hf_ziop_original_length, tvb, offset, 4, byte_order); } } |