[Git][NTPsec/ntpsec][master] libisc: replace ISC_MEM_UNUSED_ARG() with UNUSED_ARG()

Gary E. Miller gitlab at mg.gitlab.com
Wed Jun 7 03:30:02 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
21c4d8be by Gary E. Miller at 2017-06-06T20:28:05-07:00
libisc: replace ISC_MEM_UNUSED_ARG() with UNUSED_ARG()

remove another duplicate macro.

- - - - -


1 changed file:

- include/isc_mem.h


Changes:

=====================================
include/isc_mem.h
=====================================
--- a/include/isc_mem.h
+++ b/include/isc_mem.h
@@ -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")
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/21c4d8be18637ec51ff88ca6a534c6b04f86e11d

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/21c4d8be18637ec51ff88ca6a534c6b04f86e11d
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/bcb36f49/attachment.html>


More information about the vc mailing list