tree-wide: replace __alignof__() with alignof()

Addresses https://github.com/systemd/systemd/pull/27254#discussion_r1165267046.
This commit is contained in:
Yu Watanabe
2023-04-14 14:39:06 +09:00
parent 4db752e4aa
commit 1113e50796
5 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ int flush_accept(int fd);
#define CMSG_TYPED_DATA(cmsg, type) \
({ \
struct cmsghdr *_cmsg = (cmsg); \
assert_cc(__alignof__(type) <= __alignof__(struct cmsghdr)); \
assert_cc(alignof(type) <= alignof(struct cmsghdr)); \
_cmsg ? CAST_ALIGN_PTR(type, CMSG_DATA(_cmsg)) : (type*) NULL; \
})