From 7fdca61bcf60e730177889fbbd2f935ba33ae0c3 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 26 Aug 2014 17:56:44 +0200 Subject: Add gpgrt_set_alloc_func. * src/visibility.c (gpgrt_set_alloc_func): New. * configure.ac (_ESTREAM_PRINTF_REALLOC): Define. (_ESTREAM_PRINTF_EXTRA_INCLUDE): Define. * src/estream.c (mem_alloc, mem_realloc, mem_free): Simplify. (_gpgrt_free): Remove. * src/init.c (custom_realloc): New var. (_gpgrt_set_alloc_func): New. (_gpgrt_realloc, _gpgrt_malloc, _gpgrt_free): New. * src/visibility.h (gpg_err_deinit): Mark as visible. --- src/estream-printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/estream-printf.c') diff --git a/src/estream-printf.c b/src/estream-printf.c index b1eb828..39a813f 100644 --- a/src/estream-printf.c +++ b/src/estream-printf.c @@ -446,7 +446,7 @@ compute_type (argspec_t arg) at the address ARGSPECS_ADDR. The caller has provided enough space to store up to MAX_ARGSPECS in that buffer. The function may however ignore the provided buffer and malloc a larger one. On - success the addrrss of that larger buffer will be stored at + success the address of that larger buffer will be stored at ARGSPECS_ADDR. The actual number of specifications will be returned at R_ARGSPECS_COUNT. */ static int -- cgit v1.2.3