From 1a36eb12097daba41e9b42dc8d33f3f6668f228c Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 8 May 2000 23:58:23 +0000 Subject: [PATCH] Silence HP/UX warnings: cc: "mem.c", line 173: warning 714: Function "malloc_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 180: warning 714: Function "malloc_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 188: warning 714: Function "free_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 194: warning 714: Function "free_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 205: warning 714: Function "malloc_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 212: warning 714: Function "malloc_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 222: warning 714: Function "realloc_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 228: warning 714: Function "realloc_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 236: warning 714: Function "free_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 242: warning 714: Function "free_debug_func" called with no prototype or definition in scope. cc: "mem.c", line 258: warning 714: Function "set_debug_options_func" called with no prototype or definition in scope. cc: "mem.c", line 264: warning 714: Function "get_debug_options_func" called with no prototype or definition in scope. --- lib/dns/sec/openssl/mem.c | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/lib/dns/sec/openssl/mem.c b/lib/dns/sec/openssl/mem.c index efea7f5a1d..057b18d291 100644 --- a/lib/dns/sec/openssl/mem.c +++ b/lib/dns/sec/openssl/mem.c @@ -84,19 +84,29 @@ static void (*free_func)(void *) = free; /* XXX use correct function pointer types */ #ifdef CRYPTO_MDEBUG /* use default functions from mem_dbg.c */ - static void (*malloc_debug_func)()= (void (*)())CRYPTO_dbg_malloc; - static void (*realloc_debug_func)()= (void (*)())CRYPTO_dbg_realloc; - static void (*free_debug_func)()= (void (*)())CRYPTO_dbg_free; - static void (*set_debug_options_func)()= (void (*)())CRYPTO_dbg_set_options; - static long (*get_debug_options_func)()= (long (*)())CRYPTO_dbg_get_options; + static void (*malloc_debug_func)(void *, int, const char *, int, int) + = (void (*)())CRYPTO_dbg_malloc; + static void (*realloc_debug_func)(void *, void *, int, const char *, int,int) + = (void (*)())CRYPTO_dbg_realloc; + static void (*free_debug_func)(void *, int) + = (void (*)())CRYPTO_dbg_free; + static void (*set_debug_options_func)(long) + = (void (*)())CRYPTO_dbg_set_options; + static long (*get_debug_options_func)(void) + = (long (*)())CRYPTO_dbg_get_options; #else /* applications can use CRYPTO_malloc_debug_init() to select above case * at run-time */ - static void (*malloc_debug_func)()= NULL; - static void (*realloc_debug_func)()= NULL; - static void (*free_debug_func)()= NULL; - static void (*set_debug_options_func)()= NULL; - static long (*get_debug_options_func)()= NULL; + static void (*malloc_debug_func)(void *, int, const char *, int, int) + = NULL; + static void (*realloc_debug_func)(void *, void *, int, const char *, int,int) + = NULL; + static void (*free_debug_func)(void *, int) + = NULL; + static void (*set_debug_options_func)(long) + = NULL; + static long (*get_debug_options_func)(void) + = NULL; #endif