diff options
author | Anders Broman <anders.broman@ericsson.com> | 2007-10-27 14:44:29 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2007-10-27 14:44:29 +0000 |
commit | 1143ab41b155688a6eea2b3e2544a9ff527a2c6e (patch) | |
tree | 079baf0c01f0ade19877c264cdaba6a5ef68704d /epan/strutil.c | |
parent | 79e035e3f3ba14472970d3d485bbe962c85bd24b (diff) | |
download | wireshark-1143ab41b155688a6eea2b3e2544a9ff527a2c6e.tar.gz |
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
svn path=/trunk/; revision=23285
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; |