@@ -161,7 +161,7 @@ int TDBStore::erase_erase_unit(uint8_t area, uint32_t offset)
161
161
// because we use BufferedBlockDevice that has page buffers
162
162
uint8_t val = 0xff ;
163
163
int ret;
164
- for (;eu_size; --eu_size) {
164
+ for (; eu_size; --eu_size) {
165
165
ret = _buff_bd->program (&val, bd_offset++, 1 );
166
166
if (ret) {
167
167
return ret;
@@ -649,7 +649,7 @@ int TDBStore::set_finalize(set_handle_t handle)
649
649
// we should erase one sector more, just to ensure that in case of power failure
650
650
// next init() would not extend the scan phase to that section as well.
651
651
os_ret = read_record (_active_area, _free_space_offset, 0 , 0 , 0 , actual_data_size, 0 ,
652
- false , false , false , false , hash, flags, next_offset);
652
+ false , false , false , false , hash, flags, next_offset);
653
653
if (os_ret == MBED_SUCCESS) {
654
654
check_erase_before_write (_active_area, _free_space_offset, sizeof (record_header_t ));
655
655
}
@@ -949,7 +949,7 @@ int TDBStore::increment_max_keys(void **ram_table)
949
949
// Reallocate ram table with new size
950
950
ram_table_entry_t *old_ram_table = (ram_table_entry_t *) _ram_table;
951
951
ram_table_entry_t *new_ram_table = new ram_table_entry_t [_max_keys + 1 ];
952
- memset (new_ram_table, 0 , sizeof (ram_table_entry_t )* (_max_keys + 1 ));
952
+ memset (new_ram_table, 0 , sizeof (ram_table_entry_t ) * (_max_keys + 1 ));
953
953
954
954
// Copy old content to new table
955
955
memcpy (new_ram_table, old_ram_table, sizeof (ram_table_entry_t ) * _max_keys);
0 commit comments