struct packing

This commit is contained in:
MikeTuev 2022-04-24 01:23:13 +05:00 committed by GitHub
parent 7062902a3e
commit a65a323508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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