X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftcon%2Ftcon.h;h=247a7331c8b98aa52c7da44750b6db0c02c6c872;hp=1dbadafc9726716e6d19d82794ab22b461ef4903;hb=95573b36fd8130d5925f877a83b959c22aac1dfd;hpb=0ddea4131eca28437638cdaf9394324fafab33da diff --git a/ccan/tcon/tcon.h b/ccan/tcon/tcon.h index 1dbadafc..247a7331 100644 --- a/ccan/tcon/tcon.h +++ b/ccan/tcon/tcon.h @@ -330,7 +330,7 @@ canary, tcon_container_of_((member_ptr), \ tcon_offset((x), canary))) -static inline void *tcon_container_of_(void *member_ptr, size_t offset) +static inline void *tcon_container_of_(const void *member_ptr, size_t offset) { return member_ptr ? (char *)member_ptr - offset : NULL; }