[kvdb] update _fdb_kv_load(fdb_kvdb_t db) (#219)

remove function declaration in fdb_low_lvl.h;
add static qualifier in fdb_kvdb.c
This commit is contained in:
grape-wzy 2023-06-10 13:30:15 +08:00 committed by GitHub
parent 89796605c7
commit cc1c6f4d9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -50,7 +50,6 @@
#define FDB_DATA_UNUSED 0x00000000
#endif
fdb_err_t _fdb_kv_load(fdb_kvdb_t db);
size_t _fdb_set_status(uint8_t status_table[], size_t status_num, size_t status_index);
size_t _fdb_get_status(uint8_t status_table[], size_t status_num);
uint32_t _fdb_continue_ff_addr(fdb_db_t db, uint32_t start, uint32_t end);

View File

@ -1586,7 +1586,7 @@ static bool check_and_recovery_kv_cb(fdb_kv_t kv, void *arg1, void *arg2)
*
* @return result
*/
fdb_err_t _fdb_kv_load(fdb_kvdb_t db)
static fdb_err_t _fdb_kv_load(fdb_kvdb_t db)
{
fdb_err_t result = FDB_NO_ERR;
struct fdb_kv kv;