From a65a3235087e8eca35a041bb592946a3697d97f4 Mon Sep 17 00:00:00 2001 From: MikeTuev Date: Sun, 24 Apr 2022 01:23:13 +0500 Subject: [PATCH] struct packing --- src/fdb_tsdb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fdb_tsdb.c b/src/fdb_tsdb.c index b1730b4..8547761 100644 --- a/src/fdb_tsdb.c +++ b/src/fdb_tsdb.c @@ -72,6 +72,8 @@ if (result != FDB_NO_ERR) return result; \ } while(0); +#pragma pack(push,1) + struct sector_hdr_data { uint8_t status[FDB_STORE_STATUS_TABLE_SIZE]; /**< sector store status @see fdb_sector_store_status_t */ uint32_t magic; /**< magic word(`T`, `S`, `L`, `0`) */ @@ -94,6 +96,8 @@ struct log_idx_data { }; typedef struct log_idx_data *log_idx_data_t; +#pragma pack(pop) + struct query_count_args { fdb_tsl_status_t status; size_t count;