aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-enttec.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-07-01 15:41:05 +0000
committerBill Meier <wmeier@newsguy.com>2013-07-01 15:41:05 +0000
commit828d4e89f64e397b922ff74d70783554a29f7671 (patch)
tree3ba01f877931aa2cfa113d03e7b597c8ce7f038e /epan/dissectors/packet-enttec.c
parent7b5a0e4a153659551c4f57f225355c4e8504f9b5 (diff)
Define certain 'const char *...' arrays as static.
(That is: Don't create the array on the stack each time the function is called). Reduces code memory usage and execution time. (See SVN #50271) svn path=/trunk/; revision=50300
Diffstat (limited to 'epan/dissectors/packet-enttec.c')
-rw-r--r--epan/dissectors/packet-enttec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-enttec.c b/epan/dissectors/packet-enttec.c
index 048b0e1195..83817caaa2 100644
--- a/epan/dissectors/packet-enttec.c
+++ b/epan/dissectors/packet-enttec.c
@@ -181,12 +181,12 @@ dissect_enttec_ack(tvbuff_t *tvb _U_, guint offset, proto_tree *tree _U_)
static gint
dissect_enttec_dmx_data(tvbuff_t *tvb, guint offset, proto_tree *tree)
{
- const char* chan_format[] = {
+ static const char* chan_format[] = {
"%2u ",
"%02x ",
"%3u "
};
- const char* string_format[] = {
+ static const char* string_format[] = {
"%03x: %s",
"%3u: %s"
};