Do not pack file_t to avoid misalignments.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-10-01 13:28:52 +02:00
parent e2b3eacd89
commit cec3b4c7f6
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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 *);