aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Iliopoulos <ailiop@suse.com>2024-01-12 14:03:31 +0100
committerZorro Lang <zlang@kernel.org>2024-02-09 13:27:17 +0800
commit4e90abbc4d232082f3aac23a3a13b4d9b95f8c0b (patch)
treea90e68c7334d266de1a51ccc31b23892666a2664
parent750daa897667ff5efd8da171a300c25fe23d930e (diff)
downloadxfstests-dev-4e90abbc4d232082f3aac23a3a13b4d9b95f8c0b.tar.gz
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 <ailiop@suse.com> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rw-r--r--src/af_unix.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/af_unix.c b/src/af_unix.c
index 41037ee4b7..89df76586f 100644
--- a/src/af_unix.c
+++ b/src/af_unix.c
@@ -17,8 +17,6 @@
#include <sys/socket.h>
#include <sys/un.h>
-#define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER)
-
int main(int argc, char *argv[])
{
struct sockaddr_un sun;