summaryrefslogtreecommitdiff
path: root/plugins/ethercat/packet-ioraw.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-05 01:00:06 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-05 01:00:06 +0000
commitef8009abe3327a460c028cd81258b6590974f2a8 (patch)
tree502b5a72f83e524f032991e17a8f1bf71d9942c0 /plugins/ethercat/packet-ioraw.c
parent799578fb29a901adef58f6792b01c3e580fb577a (diff)
downloadwireshark-ef8009abe3327a460c028cd81258b6590974f2a8.tar.gz
Use ENC_NA as encoding for proto_tree_add_item() calls which directly reference an hf item (in hf[] with types:
FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|1|0|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN svn path=/trunk/; revision=39262
Diffstat (limited to 'plugins/ethercat/packet-ioraw.c')
-rw-r--r--plugins/ethercat/packet-ioraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ethercat/packet-ioraw.c b/plugins/ethercat/packet-ioraw.c
index 546219fd28..e331039172 100644
--- a/plugins/ethercat/packet-ioraw.c
+++ b/plugins/ethercat/packet-ioraw.c
@@ -75,10 +75,10 @@ static void dissect_ioraw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
ioraw_tree = proto_item_add_subtree(ti, ett_ioraw);
proto_item_append_text(ti,": %s",szText);
- proto_tree_add_item(ioraw_tree, hf_ioraw_header, tvb, offset, IoRawParserHDR_Len, TRUE);
+ proto_tree_add_item(ioraw_tree, hf_ioraw_header, tvb, offset, IoRawParserHDR_Len, ENC_NA);
offset+=IoRawParserHDR_Len;
- proto_tree_add_item(ioraw_tree, hf_ioraw_data, tvb, offset, ioraw_length - offset, TRUE);
+ proto_tree_add_item(ioraw_tree, hf_ioraw_data, tvb, offset, ioraw_length - offset, ENC_NA);
}
}