aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-07-23 05:33:10 +0000
committerNick Mathewson <nickm@torproject.org>2006-07-23 05:33:10 +0000
commitf4e506f42374530c84e740f535d7d962f40f6542 (patch)
treeaa6287b63af69e2309cdddcc0175ee364a3b4215
parent35960e11620d70c3ea48cac1d17cca9f02eabfbe (diff)
downloadtor-f4e506f42374530c84e740f535d7d962f40f6542.tar
tor-f4e506f42374530c84e740f535d7d962f40f6542.tar.gz
Remove STRUCT_OFFSET from config.c
svn:r6811
-rw-r--r--src/or/config.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 6f3c4db6b..7be2de30c 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -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 ) )