mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Appease VC7. It has a strangely puritanical attitude about what programmers are allowed to do a consenting void*.
svn:r4140
This commit is contained in:
parent
53607d3bb3
commit
d0a9a8bdd3
@ -23,8 +23,8 @@ const char buffers_c_id[] = "$Id$";
|
|||||||
*/
|
*/
|
||||||
#define START_MAGIC 0x70370370u
|
#define START_MAGIC 0x70370370u
|
||||||
#define END_MAGIC 0xA0B0C0D0u
|
#define END_MAGIC 0xA0B0C0D0u
|
||||||
#define RAW_MEM(m) ((m)-4)
|
#define RAW_MEM(m) ((void*)(((char*)m)-4))
|
||||||
#define GUARDED_MEM(m) ((m)+4)
|
#define GUARDED_MEM(m) ((void*)(((char*)m)+4))
|
||||||
#define ALLOC_LEN(ln) ((ln)+8)
|
#define ALLOC_LEN(ln) ((ln)+8)
|
||||||
#define SET_GUARDS(m, ln) \
|
#define SET_GUARDS(m, ln) \
|
||||||
do { set_uint32((m)-4,START_MAGIC); set_uint32((m)+ln,END_MAGIC); } while (0)
|
do { set_uint32((m)-4,START_MAGIC); set_uint32((m)+ln,END_MAGIC); } while (0)
|
||||||
|
Loading…
Reference in New Issue
Block a user