Skip to content

Commit 14e870d

Browse files
aescolardkalowsk
authored andcommitted
tests/bluetooth/host/keys/bt_keys_get_addr: Correct mock prototypes
In 82d8f09 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 <[email protected]>
1 parent e1389fa commit 14e870d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/bluetooth/host/keys/bt_keys_get_addr/src/test_suite_full_list_invalid_values.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ static int bt_unpair_unreachable_custom_fake(uint8_t id, const bt_addr_le_t *add
2828
return 0;
2929
}
3030

31-
static void bt_conn_foreach_conn_ref_null_custom_fake(int type, bt_conn_foreach_cb func,
32-
void *data)
31+
static void bt_conn_foreach_conn_ref_null_custom_fake(enum bt_conn_type type,
32+
bt_conn_foreach_cb func, void *data)
3333
{
3434
func(NULL, data);
3535
}
3636

37-
static void bt_conn_foreach_data_ref_null_custom_fake(int type, bt_conn_foreach_cb func,
38-
void *data)
37+
static void bt_conn_foreach_data_ref_null_custom_fake(enum bt_conn_type type,
38+
bt_conn_foreach_cb func, void *data)
3939
{
4040
struct bt_conn conn;
4141

tests/bluetooth/host/keys/bt_keys_get_addr/src/test_suite_full_list_overwrite_oldest.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ static int bt_unpair_unreachable_custom_fake(uint8_t id, const bt_addr_le_t *add
4646
return 0;
4747
}
4848

49-
static void bt_conn_foreach_key_slot_0_in_use_custom_fake(int type, bt_conn_foreach_cb func,
50-
void *data)
49+
static void bt_conn_foreach_key_slot_0_in_use_custom_fake(enum bt_conn_type type,
50+
bt_conn_foreach_cb func, void *data)
5151
{
5252
struct bt_conn conn;
5353

@@ -71,8 +71,8 @@ static void bt_conn_foreach_key_slot_0_in_use_custom_fake(int type, bt_conn_fore
7171
func(&conn, data);
7272
}
7373

74-
static void bt_conn_foreach_all_keys_in_use_custom_fake(int type, bt_conn_foreach_cb func,
75-
void *data)
74+
static void bt_conn_foreach_all_keys_in_use_custom_fake(enum bt_conn_type type,
75+
bt_conn_foreach_cb func, void *data)
7676
{
7777
struct bt_conn conn;
7878

@@ -86,8 +86,8 @@ static void bt_conn_foreach_all_keys_in_use_custom_fake(int type, bt_conn_foreac
8686
}
8787
}
8888

89-
static void bt_conn_foreach_no_keys_in_use_custom_fake(int type, bt_conn_foreach_cb func,
90-
void *data)
89+
static void bt_conn_foreach_no_keys_in_use_custom_fake(enum bt_conn_type type,
90+
bt_conn_foreach_cb func, void *data)
9191
{
9292
struct bt_conn conn;
9393

0 commit comments

Comments
 (0)