mirror of
https://github.com/armink/FlashDB
synced 2025-03-28 21:13:13 +00:00
Cleanup.
This commit is contained in:
parent
e708318e48
commit
b309810ff3
@ -28,7 +28,7 @@
|
||||
#endif
|
||||
|
||||
#if FDB_WRITE_GRAN != 1 && FDB_WRITE_GRAN != 8 && FDB_WRITE_GRAN != 32 && FDB_WRITE_GRAN != 64 && FDB_WRITE_GRAN != 128
|
||||
#error "the write gran can be only setting as 1, 8, 32 and 64"
|
||||
#error "the write gran can be only setting as 1, 8, 32, 64 and 128"
|
||||
#endif
|
||||
|
||||
/* magic word(`F`, `D`, `B`, `1`) */
|
||||
@ -120,7 +120,7 @@ struct kv_hdr_data {
|
||||
uint8_t padding[4]; /**< align padding for 64bit write granularity */
|
||||
#endif
|
||||
#if (FDB_WRITE_GRAN == 128)
|
||||
uint8_t padding[4 + 8]; /**< align padding for 128bit write granularity */
|
||||
uint8_t padding[12]; /**< align padding for 128bit write granularity */
|
||||
#endif
|
||||
};
|
||||
typedef struct kv_hdr_data *kv_hdr_data_t;
|
||||
|
Loading…
x
Reference in New Issue
Block a user