From 5ee6ca8da22ad8da94c829e6c02c05920742c364 Mon Sep 17 00:00:00 2001 From: Neel Chauhan Date: Mon, 31 Jul 2017 19:30:30 -0400 Subject: Switch to offsetof() --- src/or/buffers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/buffers.c') diff --git a/src/or/buffers.c b/src/or/buffers.c index d5ecfb8488..bd84103c37 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -80,7 +80,7 @@ static int parse_socks_client(const uint8_t *data, size_t datalen, /* Chunk manipulation functions */ -#define CHUNK_HEADER_LEN STRUCT_OFFSET(chunk_t, mem[0]) +#define CHUNK_HEADER_LEN offsetof(chunk_t, mem[0]) /* We leave this many NUL bytes at the end of the buffer. */ #ifdef DISABLE_MEMORY_SENTINELS -- cgit v1.2.3-54-g00ecf