diff mbox series

[RFC,v1,1/5] lib: Don't indent in `#ifdef -> #define -> #endif` block

Message ID 20220606061209.335709-2-ammarfaizi2@gnuweeb.org (mailing list archive)
State New
Headers show
Series Ensure io_uring data structure consistentcy in liburing | expand

Commit Message

Ammar Faizi June 6, 2022, 6:12 a.m. UTC
Follow the surrounding code style.

Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
---
 src/lib.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/src/lib.h b/src/lib.h
index 6672cc5..5dabd28 100644
--- a/src/lib.h
+++ b/src/lib.h
@@ -23,14 +23,14 @@ 
 
 
 #ifndef offsetof
-	#define offsetof(TYPE, FIELD) ((size_t) &((TYPE *)0)->FIELD)
+#define offsetof(TYPE, FIELD) ((size_t) &((TYPE *)0)->FIELD)
 #endif
 
 #ifndef container_of
-	#define container_of(PTR, TYPE, FIELD) ({			\
-		__typeof__(((TYPE *)0)->FIELD) *__FIELD_PTR = (PTR);	\
-		(TYPE *)((char *) __FIELD_PTR - offsetof(TYPE, FIELD));	\
-	})
+#define container_of(PTR, TYPE, FIELD) ({			\
+	__typeof__(((TYPE *)0)->FIELD) *__FIELD_PTR = (PTR);	\
+	(TYPE *)((char *) __FIELD_PTR - offsetof(TYPE, FIELD));	\
+})
 #endif
 
 void *__uring_malloc(size_t len);