aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-09 12:54:23 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 09:32:13 -0400
commit514c61e4064dafa73895a8bf6b3733bd2e571c32 (patch)
tree3c0f39782e6e3b512b26067d0513baa528bf5392 /src
parent2695f7e68c23612804c9f74f33701eed4c949d70 (diff)
downloadtor-514c61e4064dafa73895a8bf6b3733bd2e571c32.tar.gz
tor-514c61e4064dafa73895a8bf6b3733bd2e571c32.zip
namemap_st.h: Use COCCI to hide an initializer.
Diffstat (limited to 'src')
-rw-r--r--src/lib/container/namemap_st.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/container/namemap_st.h b/src/lib/container/namemap_st.h
index 5008fd5855..2fa73fc173 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) */