You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2022/09/26 12:49:25 UTC

[mynewt-nimble] 01/03: refactor: ble_gap_conn_broken can be private, make static

This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 10beb51ea4ea93544187fb7676a7ca64ac4be240
Author: Bas van den Berg <b....@gmail.com>
AuthorDate: Wed Sep 21 13:04:47 2022 +0200

    refactor: ble_gap_conn_broken can be private, make static
---
 nimble/host/src/ble_gap.c      | 2 +-
 nimble/host/src/ble_gap_priv.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index 0dcf9358..d8a944a8 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -1113,7 +1113,7 @@ ble_gap_update_failed(uint16_t conn_handle, int status)
 }
 #endif
 
-void
+static void
 ble_gap_conn_broken(uint16_t conn_handle, int reason)
 {
 #if NIMBLE_BLE_CONNECT
diff --git a/nimble/host/src/ble_gap_priv.h b/nimble/host/src/ble_gap_priv.h
index 06c4d16b..d6051b73 100644
--- a/nimble/host/src/ble_gap_priv.h
+++ b/nimble/host/src/ble_gap_priv.h
@@ -143,7 +143,6 @@ void ble_gap_preempt_done(void);
 
 int ble_gap_terminate_with_conn(struct ble_hs_conn *conn, uint8_t hci_reason);
 void ble_gap_reset_state(int reason);
-void ble_gap_conn_broken(uint16_t conn_handle, int reason);
 int32_t ble_gap_timer(void);
 
 int ble_gap_init(void);