summaryrefslogtreecommitdiff
path: root/src/lib/buf
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-22 09:28:35 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 09:32:13 -0400
commitb03c8c74ce87e44fc74e84183fe883018b43f088 (patch)
treeb694c6b6755df1683b41f1a4b1f499ecab4a9e11 /src/lib/buf
parent2e64dfea95c95499291661256ce97e6ae3d8bc88 (diff)
downloadtor-b03c8c74ce87e44fc74e84183fe883018b43f088.tar.gz
tor-b03c8c74ce87e44fc74e84183fe883018b43f088.zip
COCCI: Disable some buffers.c macros that coccinelle can't handle.
Diffstat (limited to 'src/lib/buf')
-rw-r--r--src/lib/buf/buffers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/buf/buffers.c b/src/lib/buf/buffers.c
index 4d026bd37d..3828583855 100644
--- a/src/lib/buf/buffers.c
+++ b/src/lib/buf/buffers.c
@@ -99,6 +99,7 @@
#define DBG_S(s) (void)0
#endif
+#ifndef COCCI
#ifdef DISABLE_MEMORY_SENTINELS
#define CHUNK_SET_SENTINEL(chunk, alloclen) STMT_NIL
#else
@@ -109,6 +110,7 @@
memset(a,0,SENTINEL_LEN); \
} while (0)
#endif /* defined(DISABLE_MEMORY_SENTINELS) */
+#endif
/** Move all bytes stored in <b>chunk</b> to the front of <b>chunk</b>->mem,
* to free up space at the end. */