aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-xtp.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-xtp.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-xtp.c')
-rw-r--r--epan/dissectors/packet-xtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-xtp.c b/epan/dissectors/packet-xtp.c
index 51844c87b0..c86770110b 100644
--- a/epan/dissectors/packet-xtp.c
+++ b/epan/dissectors/packet-xtp.c
@@ -906,9 +906,9 @@ dissect_xtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
struct xtphdr xtph[1];
int error = 0;
gchar *options;
- const char *fstr[] = { "<None>", "NOCHECK", "EDGE", "NOERR", "MULTI", "RES",
- "SORT", "NOFLOW", "FASTNAK", "SREQ", "DREQ",
- "RCLOSE", "WCLOSE", "EOM", "END", "BTAG" };
+ static const char *fstr[] = { "<None>", "NOCHECK", "EDGE", "NOERR", "MULTI", "RES",
+ "SORT", "NOFLOW", "FASTNAK", "SREQ", "DREQ",
+ "RCLOSE", "WCLOSE", "EOM", "END", "BTAG" };
gint fpos = 0, returned_length;
guint i, bpos;
guint cmd_options;