container_of: Format with clang-format
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I3ffe32a7eed1567b450d88257dd1a0714f8e51f7
diff --git a/.clang-ignore b/.clang-ignore
index 5c244c7..8fef609 100644
--- a/.clang-ignore
+++ b/.clang-ignore
@@ -1,6 +1,5 @@
alloc.c
astlpc.c
-container_of.h
core.c
libmctp-astlpc.h
libmctp-serial.h
diff --git a/container_of.h b/container_of.h
index a0e181a..2abb332 100644
--- a/container_of.h
+++ b/container_of.h
@@ -3,7 +3,7 @@
#ifndef container_of
#define container_of(ptr, type, member) \
- (type *)((char *)(ptr) - (char *)&((type *)0)->member)
+ (type *)((char *)(ptr) - (char *)&((type *)0)->member)
#endif
#endif