[PATCH] src/af_unix: drop unused offsetof macro definition

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



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@xxxxxxxx>
---
 src/af_unix.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/af_unix.c b/src/af_unix.c
index 41037ee4b7ad..89df76586f27 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;
-- 
2.41.0





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux