From 8d5bbb41469656b27d34ac3e334333652f63cefa Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Mon, 1 Jul 2013 13:03:23 +0000 Subject: Define certain 'const char *...' arrays as static. Reduces code memory usage and execution time. (See SVN #50271) svn path=/trunk/; revision=50292 --- epan/dissectors/packet-xtp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-xtp.c') 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[] = { "", "NOCHECK", "EDGE", "NOERR", "MULTI", "RES", - "SORT", "NOFLOW", "FASTNAK", "SREQ", "DREQ", - "RCLOSE", "WCLOSE", "EOM", "END", "BTAG" }; + static const char *fstr[] = { "", "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; -- cgit v1.2.3