From cec3b4c7f69c6ae0ce97d542bab908c22cdaf3eb Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Tue, 1 Oct 2024 13:28:52 +0200 Subject: [PATCH] Do not pack file_t to avoid misalignments. Signed-off-by: Pol Henarejos --- src/fs/file.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/file.h b/src/fs/file.h index 0cd358c..dc6bd18 100644 --- a/src/fs/file.h +++ b/src/fs/file.h @@ -87,7 +87,7 @@ #define MAX_DEPTH 4 -typedef PACK(struct file { +typedef struct file { const uint16_t fid; const uint8_t parent; //entry number in the whole table!! const uint8_t *name; @@ -95,7 +95,7 @@ typedef PACK(struct file { const uint8_t ef_structure; uint8_t *data; //should include 2 bytes len at begining const uint8_t acl[7]; -}) file_t; +} file_t; extern bool file_has_data(file_t *);