tests/bluetooth/host/keys/bt_keys_get_addr: Correct mock prototypes
In 82d8f09de1
the bt_conn_foreach prototype was changed, but these unit tests
kept using the old prototype which leads to a build warning.
Let's fix the prototype in the tests.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
e1389fa2cf
commit
14e870d8d3
2 changed files with 10 additions and 10 deletions
|
@ -28,14 +28,14 @@ static int bt_unpair_unreachable_custom_fake(uint8_t id, const bt_addr_le_t *add
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bt_conn_foreach_conn_ref_null_custom_fake(int type, bt_conn_foreach_cb func,
|
static void bt_conn_foreach_conn_ref_null_custom_fake(enum bt_conn_type type,
|
||||||
void *data)
|
bt_conn_foreach_cb func, void *data)
|
||||||
{
|
{
|
||||||
func(NULL, data);
|
func(NULL, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bt_conn_foreach_data_ref_null_custom_fake(int type, bt_conn_foreach_cb func,
|
static void bt_conn_foreach_data_ref_null_custom_fake(enum bt_conn_type type,
|
||||||
void *data)
|
bt_conn_foreach_cb func, void *data)
|
||||||
{
|
{
|
||||||
struct bt_conn conn;
|
struct bt_conn conn;
|
||||||
|
|
||||||
|
|
|
@ -46,8 +46,8 @@ static int bt_unpair_unreachable_custom_fake(uint8_t id, const bt_addr_le_t *add
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bt_conn_foreach_key_slot_0_in_use_custom_fake(int type, bt_conn_foreach_cb func,
|
static void bt_conn_foreach_key_slot_0_in_use_custom_fake(enum bt_conn_type type,
|
||||||
void *data)
|
bt_conn_foreach_cb func, void *data)
|
||||||
{
|
{
|
||||||
struct bt_conn conn;
|
struct bt_conn conn;
|
||||||
|
|
||||||
|
@ -71,8 +71,8 @@ static void bt_conn_foreach_key_slot_0_in_use_custom_fake(int type, bt_conn_fore
|
||||||
func(&conn, data);
|
func(&conn, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bt_conn_foreach_all_keys_in_use_custom_fake(int type, bt_conn_foreach_cb func,
|
static void bt_conn_foreach_all_keys_in_use_custom_fake(enum bt_conn_type type,
|
||||||
void *data)
|
bt_conn_foreach_cb func, void *data)
|
||||||
{
|
{
|
||||||
struct bt_conn conn;
|
struct bt_conn conn;
|
||||||
|
|
||||||
|
@ -86,8 +86,8 @@ static void bt_conn_foreach_all_keys_in_use_custom_fake(int type, bt_conn_foreac
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bt_conn_foreach_no_keys_in_use_custom_fake(int type, bt_conn_foreach_cb func,
|
static void bt_conn_foreach_no_keys_in_use_custom_fake(enum bt_conn_type type,
|
||||||
void *data)
|
bt_conn_foreach_cb func, void *data)
|
||||||
{
|
{
|
||||||
struct bt_conn conn;
|
struct bt_conn conn;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue