X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/d93e9a33ee30faed3945b2a7acfc46b84197d432..43f490c377cb05d1ac6e7d2c27a06ae940e2c047:/utils/macros.h?ds=inline diff --git a/utils/macros.h b/utils/macros.h index b48e6f6..4bf5663 100644 --- a/utils/macros.h +++ b/utils/macros.h @@ -130,9 +130,9 @@ * Returns: The address of the containing @ty@ object. */ -#define CONTAINER(type, member, p) \ - (!sizeof((p) = &((type *)0)->mem) + \ - (type *)((unsigned char *)(p) - offsetof(type, mem))) +#define CONTAINER(type, mem, p) \ + (!sizeof((p) = &((type *)0)->mem) + \ + (type *)((unsigned char *)(p) - offsetof(type, mem))) /* --- @UNCONST@, @UNVOLATILE@, @UNQUALIFY@ --- * *