diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-06 22:36:54 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-06 22:36:54 +0100 |
commit | 141b9946e039e25cb9e79c581639caa00f442ab5 (patch) | |
tree | dd40107e32280a8c35ddd966d91c03e869677f13 /container_of.c | |
parent | 174afdb2c0eb0e418980c1fa1c0afe41277b5b4d (diff) | |
download | lock_free-141b9946e039e25cb9e79c581639caa00f442ab5.zip lock_free-141b9946e039e25cb9e79c581639caa00f442ab5.tar.gz |
maintenance
Diffstat (limited to 'container_of.c')
-rw-r--r-- | container_of.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container_of.c b/container_of.c index f67b644..d3f9e25 100644 --- a/container_of.c +++ b/container_of.c @@ -29,7 +29,7 @@ #include "stdlib.h" #include "stddef.h" -#define container_of(ptr, type, member) ({ \ +#define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) |