]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
COCCI: Disable some buffers.c macros that coccinelle can't handle.
authorNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:28:35 +0000 (09:28 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
src/lib/buf/buffers.c

index 4d026bd37d25a57ba3b02c64b508fb110f7978f5..3828583855887048315735931b1f1319dc08f7e6 100644 (file)
@@ -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
     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. */