mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04: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:
parent
f5add515a3
commit
1a36eb1209
1 changed files with 20 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue