aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-assa_r3.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-07-01 13:03:23 +0000
committerBill Meier <wmeier@newsguy.com>2013-07-01 13:03:23 +0000
commit8d5bbb41469656b27d34ac3e334333652f63cefa (patch)
tree6e47ff7a85ea3bc7efd1a64d084db7b1ca977c39 /epan/dissectors/packet-assa_r3.c
parent59e46d816b4c22e4d39778aa3ccff2ac9e847007 (diff)
Define certain 'const char *...' arrays as static.
Reduces code memory usage and execution time. (See SVN #50271) svn path=/trunk/; revision=50292
Diffstat (limited to 'epan/dissectors/packet-assa_r3.c')
-rw-r--r--epan/dissectors/packet-assa_r3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-assa_r3.c b/epan/dissectors/packet-assa_r3.c
index 03486e6a88..76d58ad42e 100644
--- a/epan/dissectors/packet-assa_r3.c
+++ b/epan/dissectors/packet-assa_r3.c
@@ -4273,9 +4273,9 @@ dissect_r3_upstreammfgfield_checkpointlog (tvbuff_t *tvb, guint32 start_offset,
proto_tree *cpe_tree = proto_item_add_subtree (cpe_item, ett_r3checkpointlogentry);
guint resettype;
const gchar *desc;
- const gchar *resets [] = { "Stack underflow", "Stack overflow", "Power-On",
- "Software", "Brown-out", "MCLR in sleep", "WDT",
- "Normal", "[Unknown Reset Type]" };
+ static const gchar *resets [] = { "Stack underflow", "Stack overflow", "Power-On",
+ "Software", "Brown-out", "MCLR in sleep", "WDT",
+ "Normal", "[Unknown Reset Type]" };
desc = val_to_str_ext_const (cp, &r3_checkpointnames_ext, "[Unknown Checkpoint]");