[tor-commits] [tor/master] namemap_st.h: Use COCCI to hide an initializer.

teor at torproject.org teor at torproject.org
Thu Oct 24 00:01:21 UTC 2019


commit 514c61e4064dafa73895a8bf6b3733bd2e571c32
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Oct 9 12:54:23 2019 -0400

    namemap_st.h: Use COCCI to hide an initializer.
---
 src/lib/container/namemap_st.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/container/namemap_st.h b/src/lib/container/namemap_st.h
index 5008fd585..2fa73fc17 100644
--- a/src/lib/container/namemap_st.h
+++ b/src/lib/container/namemap_st.h
@@ -28,7 +28,9 @@ struct namemap_t {
   struct smartlist_t *names;
 };
 
+#ifndef COCCI
 /** Macro to initialize a namemap. */
 #define NAMEMAP_INIT() { HT_INITIALIZER(), NULL }
+#endif
 
 #endif /* !defined(NAMEMAP_ST_H) */





More information about the tor-commits mailing list