aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sita.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-sita.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-sita.c')
-rw-r--r--epan/dissectors/packet-sita.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/epan/dissectors/packet-sita.c b/epan/dissectors/packet-sita.c
index 46ee19e198..c911bb752c 100644
--- a/epan/dissectors/packet-sita.c
+++ b/epan/dissectors/packet-sita.c
@@ -109,12 +109,14 @@ dissect_sita(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *sita_errors1_tree = NULL;
proto_tree *sita_errors2_tree = NULL;
proto_tree *sita_signals_tree = NULL;
- const gchar *rx_errors1_str[] = {"Framing", "Parity", "Collision", "Long-frame", "Short-frame", "", "", "" };
- const gchar *rx_errors2_str[] = {"Non-Aligned", "Abort", "CD-lost", "DPLL", "Overrun", "Length", "CRC", "Break" };
- /*const gchar *tx_errors1_str[] = {"", "", "", "", "", "", "", "" }; */
- const gchar *tx_errors2_str[] = {"Underrun", "CTS-lost", "UART", "ReTx-limit", "", "", "", "" };
- const gchar *signals_str[] = {"DSR", "DTR", "CTS", "RTS", "DCD", "", "", "" };
- const gchar *flags_str[] = {"", "", "", "", "", "", "", "No-buffers" };
+ static const gchar *rx_errors1_str[] = {"Framing", "Parity", "Collision", "Long-frame", "Short-frame", "", "", "" };
+ static const gchar *rx_errors2_str[] = {"Non-Aligned", "Abort", "CD-lost", "DPLL", "Overrun", "Length", "CRC", "Break" };
+#if 0
+ static const gchar *tx_errors1_str[] = {"", "", "", "", "", "", "", "" };
+#endif
+ static const gchar *tx_errors2_str[] = {"Underrun", "CTS-lost", "UART", "ReTx-limit", "", "", "", "" };
+ static const gchar *signals_str[] = {"DSR", "DTR", "CTS", "RTS", "DCD", "", "", "" };
+ static const gchar *flags_str[] = {"", "", "", "", "", "", "", "No-buffers" };
col_clear(pinfo->cinfo, COL_PROTOCOL); /* erase the protocol */
col_clear(pinfo->cinfo, COL_INFO); /* and info columns so that the next decoder can fill them in */