diff options
Diffstat (limited to 'src/assuan-util.c')
-rw-r--r-- | src/assuan-util.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/assuan-util.c b/src/assuan-util.c index a335b09..24a9799 100644 --- a/src/assuan-util.c +++ b/src/assuan-util.c @@ -29,16 +29,10 @@ #include "../jnlib/logging.h" #endif -ssize_t (*_assuan_read_wrapper)(int,void*,size_t) = NULL; -ssize_t (*_assuan_write_wrapper)(int,const void*,size_t) = NULL; - - static void *(*alloc_func)(size_t n) = malloc; static void *(*realloc_func)(void *p, size_t n) = realloc; static void (*free_func)(void*) = free; - - void assuan_set_malloc_hooks ( void *(*new_alloc_func)(size_t n), void *(*new_realloc_func)(void *p, size_t n), @@ -77,18 +71,6 @@ _assuan_free (void *p) free_func (p); } -/* For use with Pth it is required to have special read and write - functions. We can't assume an ELF based system so we have to - explicitly set them if we are going to use Pth. */ -void -assuan_set_io_func (ssize_t (*r)(int,void*,size_t), - ssize_t (*w)(int,const void*,size_t)) -{ - _assuan_read_wrapper = r; - _assuan_write_wrapper = w; -} - - /* Store the error in the context so that the error sending function can take out a descriptive text. Inside the assuan code, use the |