tree-wide: use ALIGN_PTR()

This commit is contained in:
Yu Watanabe
2022-06-01 03:12:33 +09:00
parent 1c1cb8ec6f
commit 394129f88b
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -55,9 +55,9 @@ static inline void static_destruct(void) {
if (!__start_SYSTEMD_STATIC_DESTRUCT)
return;
d = ALIGN_TO_PTR(__start_SYSTEMD_STATIC_DESTRUCT, sizeof(void*));
d = ALIGN_PTR(__start_SYSTEMD_STATIC_DESTRUCT);
while (d < __stop_SYSTEMD_STATIC_DESTRUCT) {
d->destroy(d->data);
d = ALIGN_TO_PTR(d + 1, sizeof(void*));
d = ALIGN_PTR(d + 1);
}
}