summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-12-07 10:47:30 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-12-07 10:47:30 +0000
commitefd797cea0202dd68c970bb089e86625089f435b (patch)
treec1967c837f10fd3edbb3c5a7de7e90b075ca8ce2 /lib
parent8afb31d176b69f831fd894dabe73a1dd69b95244 (diff)
downloadgnutls-efd797cea0202dd68c970bb089e86625089f435b.tar.gz
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r--lib/gnutls.h.in.in4
-rw-r--r--lib/gnutls_global.c10
2 files changed, 8 insertions, 6 deletions
diff --git a/lib/gnutls.h.in.in b/lib/gnutls.h.in.in
index b65e00c468..49da8fc268 100644
--- a/lib/gnutls.h.in.in
+++ b/lib/gnutls.h.in.in
@@ -322,8 +322,8 @@ void gnutls_global_set_mem_functions(
gnutls_free_function);
/* For use in callbacks */
-gnutls_alloc_function* gnutls_global_get_malloc_function(void);
-gnutls_free_function* gnutls_global_get_free_function(void);
+gnutls_alloc_function gnutls_global_get_malloc_function(void);
+gnutls_free_function gnutls_global_get_free_function(void);
typedef void (*gnutls_log_func)( const char*);
void gnutls_global_set_log_function( gnutls_log_func log_func);
diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c
index 2494f1aa0d..fd225bda83 100644
--- a/lib/gnutls_global.c
+++ b/lib/gnutls_global.c
@@ -349,10 +349,11 @@ gnutls_check_version( const char *req_version )
* @session: is a &gnutls_session structure.
*
* This function will return a malloc() compatible function to be
- * used by callbacks.
+ * used by callbacks. The returned function is the one set by
+ * gnutls_global_set_mem_functions().
*
**/
-gnutls_alloc_function gnutls_global_get_malloc_function()
+gnutls_alloc_function gnutls_global_get_malloc_function(void)
{
return gnutls_malloc;
}
@@ -362,10 +363,11 @@ gnutls_alloc_function gnutls_global_get_malloc_function()
* @session: is a &gnutls_session structure.
*
* This function will return a free() compatible function to be
- * used by callbacks.
+ * used by callbacks. The returned function is the one set by
+ * gnutls_global_set_mem_functions().
*
**/
-gnutls_alloc_function gnutls_global_get_free_function()
+gnutls_free_function gnutls_global_get_free_function(void)
{
return gnutls_free;
}