Skip to content

Commit d855e90

Browse files
author
Seppo Takalo
committed
Astyle fixes.
1 parent c1661d6 commit d855e90

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

features/storage/TESTS/blockdevice/general_block_device/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ void test_write_deinit_init()
705705

706706
for (int i = 0; i < 10; i++) {
707707
// Generate test pattern
708-
for(int j = 0; j < size; j++) {
708+
for (int j = 0; j < size; j++) {
709709
prog[j] = (uint8_t)'0' + i + j;
710710
}
711711

features/storage/kvstore/tdbstore/TDBStore.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ int TDBStore::erase_erase_unit(uint8_t area, uint32_t offset)
161161
// because we use BufferedBlockDevice that has page buffers
162162
uint8_t val = 0xff;
163163
int ret;
164-
for (;eu_size; --eu_size) {
164+
for (; eu_size; --eu_size) {
165165
ret = _buff_bd->program(&val, bd_offset++, 1);
166166
if (ret) {
167167
return ret;
@@ -649,7 +649,7 @@ int TDBStore::set_finalize(set_handle_t handle)
649649
// we should erase one sector more, just to ensure that in case of power failure
650650
// next init() would not extend the scan phase to that section as well.
651651
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);
653653
if (os_ret == MBED_SUCCESS) {
654654
check_erase_before_write(_active_area, _free_space_offset, sizeof(record_header_t));
655655
}
@@ -949,7 +949,7 @@ int TDBStore::increment_max_keys(void **ram_table)
949949
// Reallocate ram table with new size
950950
ram_table_entry_t *old_ram_table = (ram_table_entry_t *) _ram_table;
951951
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));
953953

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

0 commit comments

Comments
 (0)