X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/d23763dae4f649cc29a923298e0232ffdf608744..98ff9295493ed2b990f30768e11b18b6bc65eaa4:/utils/macros.h?ds=sidebyside 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@ --- * *