Commit ba5ad771 authored by Rusty Russell's avatar Rusty Russell

container_of: work with -Wcast-qual

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent c9d946d0
......@@ -103,7 +103,7 @@
container_off(typeof(*var), member)
#else
#define container_off_var(var, member) \
((char *)&(var)->member - (char *)(var))
((const char *)&(var)->member - (const char *)(var))
#endif
#endif /* CCAN_CONTAINER_OF_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment