diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-10-27 14:44:29 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-10-27 14:44:29 +0000 |
commit | 6421ec645e7fd1cf6af826e985a4852be2cd3dc1 (patch) | |
tree | 079baf0c01f0ade19877c264cdaba6a5ef68704d /epan/strutil.c | |
parent | e2bb0aad00927b4cb97450aff5f27bc565ce0700 (diff) |
Apply yet another set of the optimization patches:
- Use a fast path for the most common use of tvb_get_xxx functions:
offset is >= 0 and tvb->real_data is set (this one is always true).
- match_strval() is a linear search, put the most common protocols
TCP/UDP/RDP first.
- fix gtk1 g_strlcat declaration Use g_strlcat
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23285 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/strutil.c')
-rw-r--r-- | epan/strutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/strutil.c b/epan/strutil.c index 05ab72bf94..1ec7e47828 100644 --- a/epan/strutil.c +++ b/epan/strutil.c @@ -955,7 +955,7 @@ convert_string_case(const char *string, gboolean case_insensitive) /* g_strlcat(), g_strlcpy don't exist in GLib 1.2[.x] */ #if GLIB_MAJOR_VERSION < 2 gsize -g_strlcat(gchar *dest, gchar *src, gsize dest_size) +g_strlcat(gchar *dest, const gchar *src, gsize dest_size) { gchar *d = dest; const gchar *s = src; |