diff options
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) );}) |