diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-03-16 13:30:12 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-03-16 13:30:12 +0000 |
commit | 0c8b0a9f3d9650e98add4306b6f6bf173d98b262 (patch) | |
tree | a669be34c5034787f4b972833bbcdbc389b52a63 /epan/dissectors/packet-mpeg-pat.c | |
parent | 255c803c61c69e05d16a6367630682ce343b4f32 (diff) |
Make several functions static; remove trailing commas and white space.
svn path=/trunk/; revision=41606
Diffstat (limited to 'epan/dissectors/packet-mpeg-pat.c')
-rw-r--r-- | epan/dissectors/packet-mpeg-pat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-mpeg-pat.c b/epan/dissectors/packet-mpeg-pat.c index 8fd77a976e..a25adabebe 100644 --- a/epan/dissectors/packet-mpeg-pat.c +++ b/epan/dissectors/packet-mpeg-pat.c @@ -59,12 +59,12 @@ static gint ett_mpeg_pat_prog = -1; #define MPEG_PAT_PROGRAM_MAP_PID_MASK 0x1FFF static const true_false_string mpeg_pat_cur_next_vals = { - + "Currently applicable", "Not yet applicable" }; -void +static void dissect_mpeg_pat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { @@ -106,11 +106,11 @@ dissect_mpeg_pat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (offset >= length) return; - + /* Parse all the programs */ while (offset < length) { - + prog_num = tvb_get_ntohs(tvb, offset); prog_pid = tvb_get_ntohs(tvb, offset + 2) & MPEG_PAT_PROGRAM_MAP_PID_MASK; @@ -123,7 +123,7 @@ dissect_mpeg_pat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(mpeg_pat_prog_tree, hf_mpeg_pat_program_reserved, tvb, offset, 2, ENC_BIG_ENDIAN); proto_tree_add_item(mpeg_pat_prog_tree, hf_mpeg_pat_program_map_pid, tvb, offset, 2, ENC_BIG_ENDIAN); offset += 2; - + } packet_mpeg_sect_crc(tvb, pinfo, mpeg_pat_tree, 0, offset); @@ -135,7 +135,7 @@ proto_register_mpeg_pat(void) { static hf_register_info hf[] = { - + { &hf_mpeg_pat_transport_stream_id, { "Transport Stream ID", "mpeg_pat.tsid", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL @@ -160,7 +160,7 @@ proto_register_mpeg_pat(void) "Section Number", "mpeg_pat.sect_num", FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL } }, - + { &hf_mpeg_pat_last_section_number, { "Last Section Number", "mpeg_pat.last_sect_num", FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL @@ -192,7 +192,7 @@ proto_register_mpeg_pat(void) proto_register_field_array(proto_mpeg_pat, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - + } |