[Git][NTPsec/ntpsec][master] libisc: remove unused macros
Gary E. Miller
gitlab at mg.gitlab.com
Wed Jun 7 03:34:05 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
3a1a09d3 by Gary E. Miller at 2017-06-06T20:33:26-07:00
libisc: remove unused macros
- - - - -
1 changed file:
- include/isc_mem.h
Changes:
=====================================
include/isc_mem.h
=====================================
--- a/include/isc_mem.h
+++ b/include/isc_mem.h
@@ -22,25 +22,13 @@
#include "ntp_stdlib.h"
#include "ntp_types.h"
-#define isc_mem_allocate(c, cnt) isc_mem_get(c, cnt)
#define isc_mem_get(c, cnt) \
( UNUSED_ARG(c), emalloc(cnt) )
-#define isc_mem_reallocate(c, mem, cnt) \
- ( UNUSED_ARG(c), erealloc((mem), cnt) )
-
#define isc_mem_put(c, mem, cnt) \
( UNUSED_ARG(cnt), isc_mem_free(c, (mem)) )
#define isc_mem_free(c, mem) \
( UNUSED_ARG(c), free(mem) )
-#define isc_mem_strdup(c, str) \
- ( UNUSED_ARG(c), estrdup(str) )
-
-#define isc__mem_attach(src, ptgt) do { *(ptgt) = (src); } while (0)
-#define isc__mem_detach(c) UNUSED_ARG(c)
-#define isc__mem_printallactive(s) fprintf((s), \
- "isc_mem_printallactive() stubbed.\n")
-
#endif /* GUARD_ISC_MEM_H */
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3a1a09d31cfdb50a70d890b9db386aa335f6dbb8
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3a1a09d31cfdb50a70d890b9db386aa335f6dbb8
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170607/384fddfd/attachment.html>
More information about the vc
mailing list