diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-12-06 17:14:22 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-12-06 17:14:22 +0000 |
commit | b0d4b6150fac1f17c61058a19e86ccedc2ff87c2 (patch) | |
tree | 4ec51caa2caf3ac4b876240d7e45c80863a483fe /lib/gnutls_str.c | |
parent | 84db053194b3e76290e75e6c4a268b2143774687 (diff) | |
download | gnutls-b0d4b6150fac1f17c61058a19e86ccedc2ff87c2.tar.gz |
Added the new functions gnutls_get_malloc_function(), gnutls_get_free_function(). Also changed the way callback functions must allocate data. They now need to use these functions, instead of just calling malloc().
Diffstat (limited to 'lib/gnutls_str.c')
-rw-r--r-- | lib/gnutls_str.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gnutls_str.c b/lib/gnutls_str.c index 2cb96c9478..00a3447932 100644 --- a/lib/gnutls_str.c +++ b/lib/gnutls_str.c @@ -69,9 +69,9 @@ void _gnutls_mem_cpy( char* dest, size_t dest_tot_size, const char* src, size_t } } -void _gnutls_string_init( gnutls_string* str, ALLOC_FUNC alloc_func, - REALLOC_FUNC realloc_func, - FREE_FUNC free_func) +void _gnutls_string_init( gnutls_string* str, gnutls_alloc_function alloc_func, + gnutls_realloc_function realloc_func, + gnutls_free_function free_func) { str->data = NULL; str->max_length = 0; |