diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-14 13:55:31 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-14 14:39:06 +0900 |
commit | 1113e50796315a2aaaf768a243e3788cdb4aac78 (patch) | |
tree | d36eb1d9c1294828069085c5fb84a90650847c2f /src/boot/efi | |
parent | 4db752e4aaf807428458245e2b90beac4d779523 (diff) | |
download | systemd-1113e50796315a2aaaf768a243e3788cdb4aac78.tar.gz |
tree-wide: replace __alignof__() with alignof()
Addresses https://github.com/systemd/systemd/pull/27254#discussion_r1165267046.
Diffstat (limited to 'src/boot/efi')
-rw-r--r-- | src/boot/efi/pe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/pe.c b/src/boot/efi/pe.c index e516417c07..9759d036b3 100644 --- a/src/boot/efi/pe.c +++ b/src/boot/efi/pe.c @@ -191,7 +191,7 @@ static uint32_t get_compatibility_entry_address(const DosFileHeader *dos, const uint32_t entry_point; } _packed_ LinuxPeCompat1; - while (size >= sizeof(LinuxPeCompat1) && addr % __alignof__(LinuxPeCompat1) == 0) { + while (size >= sizeof(LinuxPeCompat1) && addr % alignof(LinuxPeCompat1) == 0) { LinuxPeCompat1 *compat = (LinuxPeCompat1 *) ((uint8_t *) dos + addr); if (compat->type == 0 || compat->size == 0 || compat->size > size) |