diff options
Diffstat (limited to 'ccan/container_of')
-rw-r--r-- | ccan/container_of/container_of.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/container_of/container_of.h b/ccan/container_of/container_of.h index a65f4bb975..6d1a5be8ac 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 */ |