aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpeg-pat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-02-11 20:35:03 +0000
committerGuy Harris <guy@alum.mit.edu>2012-02-11 20:35:03 +0000
commitcd706946e582c64c014cbdb4026c14df5dbfaf55 (patch)
tree103682244f7eba18cee6bdb5b2ade8f77d4da78c /epan/dissectors/packet-mpeg-pat.c
parent74f2ef4f76360881112a292e978527cc9096d87b (diff)
mpeg_pat.cur_next_ind looks like a Boolean; make it one. That also
fixes checkapi warnings about its value_string not being properly terminated (by replacing it with a true_false_string). svn path=/trunk/; revision=40975
Diffstat (limited to 'epan/dissectors/packet-mpeg-pat.c')
-rw-r--r--epan/dissectors/packet-mpeg-pat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-mpeg-pat.c b/epan/dissectors/packet-mpeg-pat.c
index 009b00d76d..400b0d1a1f 100644
--- a/epan/dissectors/packet-mpeg-pat.c
+++ b/epan/dissectors/packet-mpeg-pat.c
@@ -57,10 +57,9 @@ static gint ett_mpeg_pat_prog = -1;
#define MPEG_PAT_PROGRAM_RESERVED_MASK 0xE000
#define MPEG_PAT_PROGRAM_MAP_PID_MASK 0x1FFF
-static const value_string mpeg_pat_cur_next_vals[] = {
+static const true_false_string mpeg_pat_cur_next_vals = {
- { 0x0, "Not yet applicable" },
- { 0x1, "Currently applicable" },
+ "Currently applicable", "Not yet applicable"
};
@@ -153,7 +152,7 @@ proto_register_mpeg_pat(void)
{ &hf_mpeg_pat_current_next_indicator, {
"Current/Next Indicator", "mpeg_pat.cur_next_ind",
- FT_UINT8, BASE_HEX, VALS(mpeg_pat_cur_next_vals), MPEG_PAT_CURRENT_NEXT_INDICATOR_MASK, NULL, HFILL
+ FT_BOOLEAN, 8, TFS(&mpeg_pat_cur_next_vals), MPEG_PAT_CURRENT_NEXT_INDICATOR_MASK, NULL, HFILL
} },
{ &hf_mpeg_pat_section_number, {