summaryrefslogtreecommitdiff
path: root/lib/gstr.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-23 12:55:40 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-23 12:56:03 +0200
commit80863f75dfa06b3a256760da86850bcc720a5e61 (patch)
treebee97dab1cc7f014d22a20ffba3a63f934946f5f /lib/gstr.h
parent086afe3375ee1fe3cda34c1b2302bdd6c95ebc0b (diff)
downloadlibtasn1-80863f75dfa06b3a256760da86850bcc720a5e61.tar.gz
libtasn1-80863f75dfa06b3a256760da86850bcc720a5e61.tar.bz2
libtasn1-80863f75dfa06b3a256760da86850bcc720a5e61.zip
improve performance by 50% by using hashes to compare strings.
Diffstat (limited to 'lib/gstr.h')
-rw-r--r--lib/gstr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gstr.h b/lib/gstr.h
index baaa6a0..672d59e 100644
--- a/lib/gstr.h
+++ b/lib/gstr.h
@@ -19,7 +19,7 @@
* 02110-1301, USA
*/
-void _asn1_str_cpy (char *dest, size_t dest_tot_size, const char *src);
+unsigned int _asn1_str_cpy (char *dest, size_t dest_tot_size, const char *src);
void _asn1_str_cat (char *dest, size_t dest_tot_size, const char *src);
#define Estrcpy(x,y) _asn1_str_cpy(x,ASN1_MAX_ERROR_DESCRIPTION_SIZE,y)