diff --git a/list.h b/list.h index 263316c..9bc275d 100644 --- a/list.h +++ b/list.h @@ -35,7 +35,7 @@ #include #define container_of(ptr, type, member) ({ \ - const typeof(((type *)0)->member)*__mptr = (ptr); \ + typeof(((type *)0)->member)*__mptr = (ptr); \ (type *)((char *)__mptr - offsetof(type, member)); \ })