From fbfc77cead9bfbc34181a438cfed18c69dd8cc04 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 2 Feb 2023 00:34:37 +0100 Subject: ext2fs: use __alignof (struct dirent) instead of hardcoding 4 --- ext2fs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext2fs/dir.c b/ext2fs/dir.c index e4ccadee..963f0843 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -869,7 +869,7 @@ count_dirents (struct node *dp, block_t nb, char *buf) /* Returned directory entries are aligned to blocks this many bytes long. Must be a power of two. */ -#define DIRENT_ALIGN 4 +#define DIRENT_ALIGN __alignof (struct dirent) /* Implement the diskfs_get_directs callback as described in . */ -- cgit v1.2.3