Skip to content
Snippets Groups Projects
Commit d0a9a8bd authored by Nick Mathewson's avatar Nick Mathewson :fire:
Browse files

Appease VC7. It has a strangely puritanical attitude about what programmers...

Appease VC7. It has a strangely puritanical attitude about what programmers are allowed to do a consenting void*.


svn:r4140
parent 53607d3b
No related branches found
Tags tor-0.1.0.5-rc
No related merge requests found
......@@ -23,8 +23,8 @@ const char buffers_c_id[] = "$Id$";
*/
#define START_MAGIC 0x70370370u
#define END_MAGIC 0xA0B0C0D0u
#define RAW_MEM(m) ((m)-4)
#define GUARDED_MEM(m) ((m)+4)
#define RAW_MEM(m) ((void*)(((char*)m)-4))
#define GUARDED_MEM(m) ((void*)(((char*)m)+4))
#define ALLOC_LEN(ln) ((ln)+8)
#define SET_GUARDS(m, ln) \
do { set_uint32((m)-4,START_MAGIC); set_uint32((m)+ln,END_MAGIC); } while (0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment