summaryrefslogtreecommitdiff
path: root/ccan
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-25 06:55:10 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-25 06:55:10 (GMT)
commit57c9c3189ae6da6620b91d3dff3b427448b8ebb3 (patch)
tree0859c1bb4aaa289f2e1c983243f579fc89a3c7c5 /ccan
parent51a1c68bc748f1fce2461b3c8a2a75c9c20477d6 (diff)
ccan/container_of/container_of.h: avoid warning with -Wcast-qual
* ccan/container_of/container_of.h (container_off_var): avoid warning with -Wcast-qual [ccan ba5ad771af4aa9e085498de6c3c665c52694460f (Rusty Russell)] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ccan')
-rw-r--r--ccan/container_of/container_of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/container_of/container_of.h b/ccan/container_of/container_of.h
index a65f4bb..6d1a5be 100644
--- a/ccan/container_of/container_of.h
+++ b/ccan/container_of/container_of.h
@@ -100,7 +100,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 */