aboutsummaryrefslogtreecommitdiff
path: root/test/benchmark-tcp-write-batch.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-01-18 15:53:38 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2012-01-18 15:56:40 +0100
commit1161d31aea76e6de2f8dac3021fb355d92944920 (patch)
tree3003347fee3a5095528080df3d6f5ce123c7ed3e /test/benchmark-tcp-write-batch.c
parentfbbc085448629a7e1d70c0095bfac0baa45df49c (diff)
downloadlibuv-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.c4
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;