diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-01-18 15:53:38 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-01-18 15:56:40 +0100 |
commit | 1161d31aea76e6de2f8dac3021fb355d92944920 (patch) | |
tree | 3003347fee3a5095528080df3d6f5ce123c7ed3e /test/benchmark-tcp-write-batch.c | |
parent | fbbc085448629a7e1d70c0095bfac0baa45df49c (diff) | |
download | libuv-1161d31aea76e6de2f8dac3021fb355d92944920.tar.gz libuv-1161d31aea76e6de2f8dac3021fb355d92944920.zip |
test: move container_of() macro into task.h
Diffstat (limited to 'test/benchmark-tcp-write-batch.c')
-rw-r--r-- | test/benchmark-tcp-write-batch.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/benchmark-tcp-write-batch.c b/test/benchmark-tcp-write-batch.c index 77bb0191..0b15f44b 100644 --- a/test/benchmark-tcp-write-batch.c +++ b/test/benchmark-tcp-write-batch.c @@ -23,15 +23,11 @@ #include "task.h" #include <stdio.h> -#include <stddef.h> #include <stdlib.h> #define WRITE_REQ_DATA "Hello, world." #define NUM_WRITE_REQS (1000 * 1000) -#define container_of(ptr, type, member) \ - ((type *) ((char *) (ptr) - offsetof(type, member))) - typedef struct { uv_write_t req; uv_buf_t buf; |