aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpeg-ca.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2012-07-25 20:46:36 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2012-07-25 20:46:36 +0000
commitb61751fc57e466f5ecc3e27d6cc83e0de8b3562d (patch)
tree2b7848a2c01a5ab63d4ff54616e489c19c86c0ac /epan/dissectors/packet-mpeg-ca.c
parente604db72e5c72430c3122371147fd0bb87756851 (diff)
Minor cleanup:
- col_clear() not needed; - remove some unneeded initializers; - reformat hf[] entries. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44013 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-mpeg-ca.c')
-rw-r--r--epan/dissectors/packet-mpeg-ca.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/epan/dissectors/packet-mpeg-ca.c b/epan/dissectors/packet-mpeg-ca.c
index 566bc3414e..d2e2a8e20a 100644
--- a/epan/dissectors/packet-mpeg-ca.c
+++ b/epan/dissectors/packet-mpeg-ca.c
@@ -63,16 +63,14 @@ dissect_mpeg_ca(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint offset = 0, length = 0;
- proto_item *ti = NULL;
- proto_tree *mpeg_ca_tree = NULL;
+ proto_item *ti;
+ proto_tree *mpeg_ca_tree;
/* The TVB should start right after the section_length in the Section packet */
- col_clear(pinfo->cinfo, COL_INFO);
col_set_str(pinfo->cinfo, COL_INFO, "Conditional Access Table (CA)");
if (!tree)
-
return;
ti = proto_tree_add_item(tree, proto_mpeg_ca, tvb, offset, -1, ENC_NA);
@@ -109,27 +107,32 @@ proto_register_mpeg_ca(void)
{ &hf_mpeg_ca_reserved, {
"Reserved", "mpeg_ca.reserved",
- FT_UINT24, BASE_HEX, NULL, MPEG_CA_RESERVED_MASK, NULL, HFILL
+ FT_UINT24, BASE_HEX, NULL, MPEG_CA_RESERVED_MASK,
+ NULL, HFILL
} },
{ &hf_mpeg_ca_version_number, {
"Version Number", "mpeg_ca.version",
- FT_UINT24, BASE_HEX, NULL, MPEG_CA_VERSION_NUMBER_MASK, NULL, HFILL
+ FT_UINT24, BASE_HEX, NULL, MPEG_CA_VERSION_NUMBER_MASK,
+ NULL, HFILL
} },
{ &hf_mpeg_ca_current_next_indicator, {
"Current/Next Indicator", "mpeg_ca.cur_next_ind",
- FT_UINT24, BASE_HEX, VALS(mpeg_ca_cur_next_vals), MPEG_CA_CURRENT_NEXT_INDICATOR_MASK, NULL, HFILL
+ FT_UINT24, BASE_HEX, VALS(mpeg_ca_cur_next_vals), MPEG_CA_CURRENT_NEXT_INDICATOR_MASK,
+ NULL, HFILL
} },
{ &hf_mpeg_ca_section_number, {
"Section Number", "mpeg_ca.sect_num",
- FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
+ FT_UINT8, BASE_DEC, NULL, 0,
+ NULL, HFILL
} },
{ &hf_mpeg_ca_last_section_number, {
"Last Section Number", "mpeg_ca.last_sect_num",
- FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
+ FT_UINT8, BASE_DEC, NULL, 0,
+ NULL, HFILL
} },
};