diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-23 18:48:50 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-23 18:48:50 +0000 |
commit | 4748747a51659bc1c9569d3a25b276ff72754c1b (patch) | |
tree | 2b6eed575ff4a611e45f4d63bc245cab023be954 /epan/dissectors | |
parent | f169a2063f972d7a431aa2a0bf81077b33f2b460 (diff) |
Fix a few proto_tree_add_item() encoding args.
svn path=/trunk/; revision=39519
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-tds.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-usb-hid.c | 6 | ||||
-rw-r--r-- | epan/dissectors/packet-windows-common.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-tds.c b/epan/dissectors/packet-tds.c index 5e98cf01f3..3f1df77bbb 100644 --- a/epan/dissectors/packet-tds.c +++ b/epan/dissectors/packet-tds.c @@ -1835,7 +1835,7 @@ dissect_tds_type_varbyte(tvbuff_t *tvb, guint *offset, packet_info *pinfo, proto proto_tree *sub_tree = NULL; proto_item *item = NULL, *length_item = NULL; - item = proto_tree_add_item(tree, hf, tvb, *offset, 0, TRUE); + item = proto_tree_add_item(tree, hf, tvb, *offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(item, ett_tds_type_varbyte); if(plp) { diff --git a/epan/dissectors/packet-usb-hid.c b/epan/dissectors/packet-usb-hid.c index d776bbd40b..1a6fbbab63 100644 --- a/epan/dissectors/packet-usb-hid.c +++ b/epan/dissectors/packet-usb-hid.c @@ -494,9 +494,9 @@ dissect_usb_hid_report_item(packet_info *pinfo _U_, proto_tree *parent_tree, tvb item = proto_tree_add_text(subtree, tvb, offset, 1, "Header"); tree = proto_item_add_subtree(item, ett_usb_hid_item_header); - proto_tree_add_item(tree, hf_usb_hid_item_bSize, tvb, offset, 1, ENC_LITTLE_ENDIAN); - proto_tree_add_item(tree, hf_usb_hid_item_bType, tvb, offset, 1, ENC_LITTLE_ENDIAN); - proto_tree_add_item(tree, hf_usb_hid_curitem_bTag, tvb, offset, 1, TRUE); + proto_tree_add_item(tree, hf_usb_hid_item_bSize, tvb, offset, 1, ENC_LITTLE_ENDIAN); + proto_tree_add_item(tree, hf_usb_hid_item_bType, tvb, offset, 1, ENC_LITTLE_ENDIAN); + proto_tree_add_item(tree, hf_usb_hid_curitem_bTag, tvb, offset, 1, ENC_LITTLE_ENDIAN); offset++; if ((bType == 3) && (bTag == 16)) { /* Long item */ diff --git a/epan/dissectors/packet-windows-common.c b/epan/dissectors/packet-windows-common.c index 58d09433a0..71986e821c 100644 --- a/epan/dissectors/packet-windows-common.c +++ b/epan/dissectors/packet-windows-common.c @@ -1704,7 +1704,7 @@ dissect_nt_sid(tvbuff_t *tvb, int offset, proto_tree *parent_tree, if (rid) { item = proto_tree_add_item (subtree, - (sid_display_hex ? hf_nt_sid_rid_hex : hf_nt_sid_rid_dec), tvb, rid_offset, 4, TRUE); + (sid_display_hex ? hf_nt_sid_rid_hex : hf_nt_sid_rid_dec), tvb, rid_offset, 4, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%s)", mapped_rid); } |