Commit 21c4d8be authored by Gary E. Miller's avatar Gary E. Miller 💬
Browse files

libisc: replace ISC_MEM_UNUSED_ARG() with UNUSED_ARG()

remove another duplicate macro.
parent c9d47e6c
Pipeline #8821075 passed with stage
in 4 minutes and 38 seconds
......@@ -20,28 +20,26 @@
#include "isc_result.h"
#include "ntp_stdlib.h"
#define ISC_MEM_UNUSED_ARG(a) ((void)(a))
#include "ntp_types.h"
#define isc_mem_allocate(c, cnt) isc_mem_get(c, cnt)
#define isc_mem_get(c, cnt) \
( ISC_MEM_UNUSED_ARG(c), emalloc(cnt) )
( UNUSED_ARG(c), emalloc(cnt) )
#define isc_mem_reallocate(c, mem, cnt) \
( ISC_MEM_UNUSED_ARG(c), erealloc((mem), cnt) )
( UNUSED_ARG(c), erealloc((mem), cnt) )
#define isc_mem_put(c, mem, cnt) \
( ISC_MEM_UNUSED_ARG(cnt), isc_mem_free(c, (mem)) )
( UNUSED_ARG(cnt), isc_mem_free(c, (mem)) )
#define isc_mem_free(c, mem) \
( ISC_MEM_UNUSED_ARG(c), free(mem) )
( UNUSED_ARG(c), free(mem) )
#define isc_mem_strdup(c, str) \
( ISC_MEM_UNUSED_ARG(c), estrdup(str) )
( UNUSED_ARG(c), estrdup(str) )
#define isc__mem_attach(src, ptgt) do { *(ptgt) = (src); } while (0)
#define isc__mem_detach(c) ISC_MEM_UNUSED_ARG(c)
#define isc__mem_detach(c) UNUSED_ARG(c)
#define isc__mem_printallactive(s) fprintf((s), \
"isc_mem_printallactive() stubbed.\n")
......
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