diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-07-23 05:33:10 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-07-23 05:33:10 +0000 |
commit | f86cd5c089eec762261e05d0c399eb1c3c9105b8 (patch) | |
tree | 88b276b98fdc8cdcf91acb72ff32764baa394b2e /trunk/src | |
parent | 898f7fa1ecfd4f6e6f432da5b7ddd87fe58020b5 (diff) | |
download | tor-f86cd5c089eec762261e05d0c399eb1c3c9105b8.tar.gz tor-f86cd5c089eec762261e05d0c399eb1c3c9105b8.zip |
Remove STRUCT_OFFSET from config.c
svn:r6811
Diffstat (limited to 'trunk/src')
-rw-r--r-- | trunk/src/or/config.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/trunk/src/or/config.c b/trunk/src/or/config.c index 6f3c4db6b5..7be2de30cf 100644 --- a/trunk/src/or/config.c +++ b/trunk/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 ) ) |