aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cpha.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-09-26 09:01:17 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-09-26 09:01:17 +0000
commitfc447d3377db6a9a8e2cc519087f8054e85c143c (patch)
treea281dce3d949029c1d21e15e10d5e61c9c5be2b5 /epan/dissectors/packet-cpha.c
parent4b952c1324c2dd7ad9b5208550eb4e1c79aa2874 (diff)
Get rid of check_col, while at it set ENC.
svn path=/trunk/; revision=39147
Diffstat (limited to 'epan/dissectors/packet-cpha.c')
-rw-r--r--epan/dissectors/packet-cpha.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-cpha.c b/epan/dissectors/packet-cpha.c
index 1b99d35e21..8dc2f22db6 100644
--- a/epan/dissectors/packet-cpha.c
+++ b/epan/dissectors/packet-cpha.c
@@ -225,12 +225,11 @@ dissect_cpha(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
hdr.filler = g_ntohs(hdr.filler);
opcode = g_ntohs(hdr.opcode);
- if (check_col(pinfo->cinfo, COL_INFO))
- col_add_fstr(pinfo->cinfo, COL_INFO, "CPHAv%d: %s",
- hdr.ha_protocol_ver, opcode2str_short(opcode));
+ col_add_fstr(pinfo->cinfo, COL_INFO, "CPHAv%d: %s",
+ hdr.ha_protocol_ver, opcode2str_short(opcode));
if (tree) {
- ti = proto_tree_add_item(tree, proto_cphap, tvb, offset, -1, FALSE);
+ ti = proto_tree_add_item(tree, proto_cphap, tvb, offset, -1, ENC_BIG_ENDIAN);
cpha_tree = proto_item_add_subtree(ti, ett_cphap);
}
if (tree) {