From cc1c6f4d9f546f91566a0331a12813d4070324e2 Mon Sep 17 00:00:00 2001 From: grape-wzy <68774034+grape-wzy@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:30:15 +0800 Subject: [PATCH] [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 --- inc/fdb_low_lvl.h | 1 - src/fdb_kvdb.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/fdb_low_lvl.h b/inc/fdb_low_lvl.h index a9b78e2..160db75 100644 --- a/inc/fdb_low_lvl.h +++ b/inc/fdb_low_lvl.h @@ -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); diff --git a/src/fdb_kvdb.c b/src/fdb_kvdb.c index 704ff8d..393c463 100644 --- a/src/fdb_kvdb.c +++ b/src/fdb_kvdb.c @@ -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;