From 0c8b0a9f3d9650e98add4306b6f6bf173d98b262 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Fri, 16 Mar 2012 13:30:12 +0000 Subject: Make several functions static; remove trailing commas and white space. svn path=/trunk/; revision=41606 --- epan/dissectors/packet-mpeg-pat.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'epan/dissectors/packet-mpeg-pat.c') 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)); - + } -- cgit v1.2.3