aboutsummaryrefslogtreecommitdiff
path: root/src/lib/container
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-09 12:55:37 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 09:32:13 -0400
commit41f44d87604c8b780e9c3a1e60f006633e0a6d1b (patch)
tree4265285af2165733ac8623825b00865dc1375355 /src/lib/container
parent514c61e4064dafa73895a8bf6b3733bd2e571c32 (diff)
downloadtor-41f44d87604c8b780e9c3a1e60f006633e0a6d1b.tar.gz
tor-41f44d87604c8b780e9c3a1e60f006633e0a6d1b.zip
smartlist.h: use COCCI to hide SMARTLIST_FOREACH_JOIN from Coccinelle
Diffstat (limited to 'src/lib/container')
-rw-r--r--src/lib/container/smartlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/container/smartlist.h b/src/lib/container/smartlist.h
index 25638e4b22..1dadf4ae6b 100644
--- a/src/lib/container/smartlist.h
+++ b/src/lib/container/smartlist.h
@@ -92,6 +92,7 @@ char *smartlist_join_strings2(smartlist_t *sl, const char *join,
size_t join_len, int terminate, size_t *len_out)
ATTR_MALLOC;
+#ifndef COCCI
/* Helper: Given two lists of items, possibly of different types, such that
* both lists are sorted on some common field (as determined by a comparison
* expression <b>cmpexpr</b>), and such that one list (<b>sl1</b>) has no
@@ -165,5 +166,6 @@ char *smartlist_join_strings2(smartlist_t *sl, const char *join,
#define SMARTLIST_FOREACH_JOIN_END(var1, var2) \
} \
STMT_END
+#endif
#endif /* !defined(TOR_SMARTLIST_H) */