aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dmx-chan.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-10-18 18:11:56 +0000
committerBill Meier <wmeier@newsguy.com>2012-10-18 18:11:56 +0000
commit2b1f1e611d578ae7e2966cd67cac3179f58048b4 (patch)
treeaa63c2ebf688c6982feec69460c040be15ecfc71 /epan/dissectors/packet-dmx-chan.c
parentbbfa21cc02dc67fe2a27db19153986072b281e0f (diff)
Minor cleanup:
- Fix incorrect use of ENC_BIG_ENDIAN instead of FALSE (3 instances); [The incorrect use of ENC_BIG_ENDIAN was benign since ENC_BIG_ENDIAN is currently defined as 0x0000000]; - use proper ENC arg for a proto_tree_add_item(); - whitespace. svn path=/trunk/; revision=45640
Diffstat (limited to 'epan/dissectors/packet-dmx-chan.c')
-rw-r--r--epan/dissectors/packet-dmx-chan.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/epan/dissectors/packet-dmx-chan.c b/epan/dissectors/packet-dmx-chan.c
index c9eb0d37ed..297688a73e 100644
--- a/epan/dissectors/packet-dmx-chan.c
+++ b/epan/dissectors/packet-dmx-chan.c
@@ -78,8 +78,7 @@ dissect_dmx_chan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint8 v;
unsigned offset = 0;
- proto_tree *ti = proto_tree_add_item(tree, proto_dmx_chan, tvb,
- offset, -1, FALSE);
+ proto_tree *ti = proto_tree_add_item(tree, proto_dmx_chan, tvb, offset, -1, ENC_NA);
proto_tree *dmx_chan_tree = proto_item_add_subtree(ti, ett_dmx_chan);
length = tvb_reported_length_remaining(tvb, offset);
@@ -154,7 +153,7 @@ proto_register_dmx_chan(void)
};
static enum_val_t col_count[] = {
- { "6", "6", 6 },
+ { "6", "6", 6 },
{ "10", "10", 10 },
{ "12", "12", 12 },
{ "16", "16", 16 },
@@ -173,18 +172,18 @@ proto_register_dmx_chan(void)
"DMX Display channel value type",
"The way DMX values are displayed",
&global_disp_chan_val_type,
- disp_chan_val_types, ENC_BIG_ENDIAN);
+ disp_chan_val_types, FALSE);
prefs_register_enum_preference(dmx_chan_module, "dmx_disp_chan_nr_type",
"DMX Display channel nr. type",
"The way DMX channel numbers are displayed",
&global_disp_chan_nr_type,
- disp_chan_nr_types, ENC_BIG_ENDIAN);
+ disp_chan_nr_types, FALSE);
prefs_register_enum_preference(dmx_chan_module, "dmx_disp_col_count",
"DMX Display Column Count",
"The number of columns for the DMX display",
&global_disp_col_count,
- col_count, ENC_BIG_ENDIAN);
+ col_count, FALSE);
}