From: Anthony Iliopoulos Date: Fri, 12 Jan 2024 13:03:31 +0000 (+0100) Subject: src/af_unix: drop unused offsetof macro definition X-Git-Tag: xfs-zoned-old-2024-04-10~146 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4e90abbc4d232082f3aac23a3a13b4d9b95f8c0b;p=users%2Fhch%2Fxfstests-dev.git src/af_unix: drop unused offsetof macro definition The offsetof macro is causing compiler warnings since it is being redefined, but it is anyway not used, so drop it completely. Signed-off-by: Anthony Iliopoulos Reviewed-by: "Darrick J. Wong" Signed-off-by: Zorro Lang --- diff --git a/src/af_unix.c b/src/af_unix.c index 41037ee4b..89df76586 100644 --- a/src/af_unix.c +++ b/src/af_unix.c @@ -17,8 +17,6 @@ #include #include -#define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) - int main(int argc, char *argv[]) { struct sockaddr_un sun;