summaryrefslogtreecommitdiff
path: root/lib/gnutls_mem.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-12-06 17:14:22 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-12-06 17:14:22 +0000
commitb0d4b6150fac1f17c61058a19e86ccedc2ff87c2 (patch)
tree4ec51caa2caf3ac4b876240d7e45c80863a483fe /lib/gnutls_mem.c
parent84db053194b3e76290e75e6c4a268b2143774687 (diff)
downloadgnutls-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_mem.c')
-rw-r--r--lib/gnutls_mem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gnutls_mem.c b/lib/gnutls_mem.c
index 88a0787d0e..9dea5e3451 100644
--- a/lib/gnutls_mem.c
+++ b/lib/gnutls_mem.c
@@ -23,10 +23,10 @@
#include <gnutls_errors.h>
#include <gnutls_num.h>
-ALLOC_FUNC gnutls_secure_malloc = malloc;
-ALLOC_FUNC gnutls_malloc = malloc;
-FREE_FUNC gnutls_free = free;
-REALLOC_FUNC gnutls_realloc = realloc;
+gnutls_alloc_function gnutls_secure_malloc = malloc;
+gnutls_alloc_function gnutls_malloc = malloc;
+gnutls_free_function gnutls_free = free;
+gnutls_realloc_function gnutls_realloc = realloc;
void* (*gnutls_calloc)(size_t, size_t) = calloc;
char* (*gnutls_strdup)(const char*) = strdup;