]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove STRUCT_OFFSET from config.c
authorNick Mathewson <nickm@torproject.org>
Sun, 23 Jul 2006 05:33:10 +0000 (05:33 +0000)
committerNick Mathewson <nickm@torproject.org>
Sun, 23 Jul 2006 05:33:10 +0000 (05:33 +0000)
svn:r6811

src/or/config.c

index 6f3c4db6b586ae48cead2ff2e9321bc9cebeab09..7be2de30cfca8f50b5253c781bcce1f9a643bf8f 100644 (file)
@@ -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 ) )