Skip to content

Commit 947e0fd

Browse files
author
Seppo Takalo
committed
Astyle fixes.
1 parent 6346b8f commit 947e0fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

features/storage/kvstore/tdbstore/TDBStore.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int TDBStore::erase_erase_unit(uint8_t area, uint32_t offset)
166166
// because we use BufferedBlockDevice that has page buffers
167167
uint8_t val = 0xff;
168168
int ret;
169-
for (;eu_size; --eu_size) {
169+
for (; eu_size; --eu_size) {
170170
ret = _buff_bd->program(&val, bd_offset++, 1);
171171
if (ret) {
172172
return ret;
@@ -654,7 +654,7 @@ int TDBStore::set_finalize(set_handle_t handle)
654654
// we should erase one sector more, just to ensure that in case of power failure
655655
// next init() would not extend the scan phase to that section as well.
656656
os_ret = read_record(_active_area, _free_space_offset, 0, 0, 0, actual_data_size, 0,
657-
false, false, false, false, hash, flags, next_offset);
657+
false, false, false, false, hash, flags, next_offset);
658658
if (os_ret == MBED_SUCCESS) {
659659
check_erase_before_write(_active_area, _free_space_offset, sizeof(record_header_t));
660660
}
@@ -954,7 +954,7 @@ int TDBStore::increment_max_keys(void **ram_table)
954954
// Reallocate ram table with new size
955955
ram_table_entry_t *old_ram_table = (ram_table_entry_t *) _ram_table;
956956
ram_table_entry_t *new_ram_table = new ram_table_entry_t[_max_keys + 1];
957-
memset(new_ram_table, 0, sizeof(ram_table_entry_t)*(_max_keys + 1));
957+
memset(new_ram_table, 0, sizeof(ram_table_entry_t) * (_max_keys + 1));
958958

959959
// Copy old content to new table
960960
memcpy(new_ram_table, old_ram_table, sizeof(ram_table_entry_t) * _max_keys);

0 commit comments

Comments
 (0)