diff options
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/types.h b/src/helper/types.h index 1010dcd9..04b00594 100644 --- a/src/helper/types.h +++ b/src/helper/types.h @@ -80,7 +80,7 @@ typedef bool _Bool; */ #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) + (type *)( (void *) ( (char *)__mptr - offsetof(type,member) ) );}) /** |