From 02065b0981f85eff9d84ca42546809ee6319bd20 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Thu, 6 Oct 2011 14:46:34 +0000 Subject: Convert 'encoding' parameter of certain proto_tree_add_item() calls in plugin 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 svn path=/trunk/; revision=39292 --- plugins/docsis/packet-bpkmrsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/docsis/packet-bpkmrsp.c') diff --git a/plugins/docsis/packet-bpkmrsp.c b/plugins/docsis/packet-bpkmrsp.c index 0826c9b2ea..3a3f882dce 100644 --- a/plugins/docsis/packet-bpkmrsp.c +++ b/plugins/docsis/packet-bpkmrsp.c @@ -84,11 +84,11 @@ dissect_bpkmrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) "BPKM Response Message"); bpkmrsp_tree = proto_item_add_subtree (it, ett_docsis_bpkmrsp); proto_tree_add_item (bpkmrsp_tree, hf_docsis_bpkmrsp_code, tvb, 0, 1, - FALSE); + ENC_BIG_ENDIAN); proto_tree_add_item (bpkmrsp_tree, hf_docsis_bpkmrsp_ident, tvb, 1, 1, - FALSE); + ENC_BIG_ENDIAN); proto_tree_add_item (bpkmrsp_tree, hf_docsis_bpkmrsp_length, tvb, 2, 2, - FALSE); + ENC_BIG_ENDIAN); } /* Code to Call subdissector */ -- cgit v1.2.3