2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

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.
This commit is contained in:
David Lawrence
2000-05-08 23:58:23 +00:00
parent f5add515a3
commit 1a36eb1209

View File

@@ -84,19 +84,29 @@ static void (*free_func)(void *) = free;
/* XXX use correct function pointer types */ /* XXX use correct function pointer types */
#ifdef CRYPTO_MDEBUG #ifdef CRYPTO_MDEBUG
/* use default functions from mem_dbg.c */ /* use default functions from mem_dbg.c */
static void (*malloc_debug_func)()= (void (*)())CRYPTO_dbg_malloc; static void (*malloc_debug_func)(void *, int, const char *, int, int)
static void (*realloc_debug_func)()= (void (*)())CRYPTO_dbg_realloc; = (void (*)())CRYPTO_dbg_malloc;
static void (*free_debug_func)()= (void (*)())CRYPTO_dbg_free; static void (*realloc_debug_func)(void *, void *, int, const char *, int,int)
static void (*set_debug_options_func)()= (void (*)())CRYPTO_dbg_set_options; = (void (*)())CRYPTO_dbg_realloc;
static long (*get_debug_options_func)()= (long (*)())CRYPTO_dbg_get_options; 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 #else
/* applications can use CRYPTO_malloc_debug_init() to select above case /* applications can use CRYPTO_malloc_debug_init() to select above case
* at run-time */ * at run-time */
static void (*malloc_debug_func)()= NULL; static void (*malloc_debug_func)(void *, int, const char *, int, int)
static void (*realloc_debug_func)()= NULL; = NULL;
static void (*free_debug_func)()= NULL; static void (*realloc_debug_func)(void *, void *, int, const char *, int,int)
static void (*set_debug_options_func)()= NULL; = NULL;
static long (*get_debug_options_func)()= 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 #endif