diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-07-01 13:03:23 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-07-01 13:03:23 +0000 |
commit | 8d5bbb41469656b27d34ac3e334333652f63cefa (patch) | |
tree | 6e47ff7a85ea3bc7efd1a64d084db7b1ca977c39 /epan/dissectors/packet-kink.c | |
parent | 59e46d816b4c22e4d39778aa3ccff2ac9e847007 (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-kink.c')
-rw-r--r-- | epan/dissectors/packet-kink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-kink.c b/epan/dissectors/packet-kink.c index 4274b81f66..38ed13ad54 100644 --- a/epan/dissectors/packet-kink.c +++ b/epan/dissectors/packet-kink.c @@ -774,7 +774,7 @@ dissect_payload_kink_error(packet_info *pinfo, tvbuff_t *tvb, int offset, proto_ guint16 payload_length; guint32 error_code; int start_payload_offset = 0; /* Keep the beginning of the payload offset */ - const char *char_error_code[] = { + static const char *char_error_code[] = { "KINK_OK", "KINK_PROTOERR", "KINK_INVDOI", |