diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-07-01 14:40:58 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-07-01 14:40:58 +0000 |
commit | 3f4fb4d56bb2eb8a9b48dc95118c8e0f87aa8fb3 (patch) | |
tree | 3da6de5d9630ee564fae1538a8d482bb99777f06 /plugins/wimaxasncp | |
parent | 43442af8e3d31ed5561e0d1120f6350bc6261c51 (diff) | |
download | wireshark-3f4fb4d56bb2eb8a9b48dc95118c8e0f87aa8fb3.tar.gz wireshark-3f4fb4d56bb2eb8a9b48dc95118c8e0f87aa8fb3.tar.bz2 wireshark-3f4fb4d56bb2eb8a9b48dc95118c8e0f87aa8fb3.zip |
Define certain 'const char *...' arrays as static.
(That is: Don't create the array on the stack each time
the function is called).
Reduces code memory usage and execution time.
(See SVN #50271)
svn path=/trunk/; revision=50296
Diffstat (limited to 'plugins/wimaxasncp')
-rw-r--r-- | plugins/wimaxasncp/packet-wimaxasncp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/wimaxasncp/packet-wimaxasncp.c b/plugins/wimaxasncp/packet-wimaxasncp.c index e4703cf90f..fa07ff2164 100644 --- a/plugins/wimaxasncp/packet-wimaxasncp.c +++ b/plugins/wimaxasncp/packet-wimaxasncp.c @@ -696,10 +696,10 @@ static void wimaxasncp_dissect_tlv_value( proto_item *tlv_item, const wimaxasncp_dict_tlv_t *tlv_info) { - guint offset = 0; + guint offset = 0; guint length; - const guint max_show_bytes = 24; /* arbitrary */ - const gchar *hex_note = "[hex]"; + const guint max_show_bytes = 24; /* arbitrary */ + static const gchar *hex_note = "[hex]"; length = tvb_reported_length(tvb); |