Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57367dc5 authored by Chris Manton's avatar Chris Manton
Browse files

Use proper types btif/btif_hh_connect

Bug: 188297862
Tag: #refactor
Test: gd/cert/run

Change-Id: I4b7edc4ed0b4f3eba3251529278731199cc48610
parent b627908c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -230,7 +230,7 @@ extern bt_status_t btif_av_sink_execute_service(bool b_enable);
extern bt_status_t btif_hh_execute_service(bool b_enable);
extern bt_status_t btif_hf_client_execute_service(bool b_enable);
extern bt_status_t btif_sdp_execute_service(bool b_enable);
extern int btif_hh_connect(const RawAddress* bd_addr);
extern bt_status_t btif_hh_connect(const RawAddress* bd_addr);
extern bt_status_t btif_hd_execute_service(bool b_enable);
extern bluetooth::hearing_aid::HearingAidInterface*
btif_hearing_aid_get_interface();
@@ -636,8 +636,7 @@ static void btif_dm_cb_create_bond(const RawAddress bd_addr,
  }

  if (is_hid && (device_type & BT_DEVICE_TYPE_BLE) == 0) {
    bt_status_t status;
    status = (bt_status_t)btif_hh_connect(&bd_addr);
    const bt_status_t status = btif_hh_connect(&bd_addr);
    if (status != BT_STATUS_SUCCESS)
      bond_state_changed(status, bd_addr, BT_BOND_STATE_NONE);
  } else {