[or-cvs] Remove STRUCT_OFFSET from config.c

Nick Mathewson nickm at seul.org
Sun Jul 23 05:33:12 UTC 2006


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv4423/or

Modified Files:
	config.c 
Log Message:
Remove STRUCT_OFFSET from config.c

Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.576
retrieving revision 1.577
diff -u -p -d -r1.576 -r1.577
--- config.c	22 Jul 2006 07:19:11 -0000	1.576
+++ config.c	23 Jul 2006 05:33:10 -0000	1.577
@@ -101,10 +101,6 @@ typedef struct config_var_t {
   const char *initvalue; /**< String (or null) describing initial value. */
 } config_var_t;
 
-/** Return the offset of <b>member</b> within the type <b>tp</b>, in bytes */
-#define STRUCT_OFFSET(tp, member) \
-  ((off_t) (((char*)&((tp*)0)->member)-(char*)0))
-
 #define STRUCT_VAR_P(st, off) \
   ((void*) ( ((char*)st) + off ) )
 



More information about the tor-commits mailing list