summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/memory/container_of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/memory/container_of.h b/base/memory/container_of.h
index ddb795935..faf167964 100644
--- a/base/memory/container_of.h
+++ b/base/memory/container_of.h
@@ -18,7 +18,7 @@
//----------------------------------------------------------------
#define container_of(v, t, head) \
- ((t *)((const char *)(v) - offsetof(t, head)))
+ ((t *)((char *)(v) - offsetof(t, head)))
//----------------------------------------------------------------