Commit 1a36eb12 authored by David Lawrence's avatar David Lawrence
Browse files

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.
parent f5add515
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment