diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-23 12:55:40 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-23 12:56:03 +0200 |
commit | 80863f75dfa06b3a256760da86850bcc720a5e61 (patch) | |
tree | bee97dab1cc7f014d22a20ffba3a63f934946f5f /lib/gstr.h | |
parent | 086afe3375ee1fe3cda34c1b2302bdd6c95ebc0b (diff) | |
download | libtasn1-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |