nimble/sm: Make ble_sm_build_authreq static This is used only inside ble_sm.c so make it static to give compiler option to inline it.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/0189dab0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/0189dab0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/0189dab0 Branch: refs/heads/develop Commit: 0189dab05c02ddcfa3287d949083470ca235e238 Parents: a7ddc25 Author: Szymon Janc <[email protected]> Authored: Wed Jan 25 15:40:43 2017 +0100 Committer: Szymon Janc <[email protected]> Committed: Wed Jan 25 15:44:15 2017 +0100 ---------------------------------------------------------------------- net/nimble/host/src/ble_sm.c | 2 +- net/nimble/host/src/ble_sm_priv.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0189dab0/net/nimble/host/src/ble_sm.c ---------------------------------------------------------------------- diff --git a/net/nimble/host/src/ble_sm.c b/net/nimble/host/src/ble_sm.c index 7081e3f..08b14c2 100644 --- a/net/nimble/host/src/ble_sm.c +++ b/net/nimble/host/src/ble_sm.c @@ -667,7 +667,7 @@ ble_sm_rx_noop(uint16_t conn_handle, struct os_mbuf **om, res->sm_err = BLE_SM_ERR_CMD_NOT_SUPP; } -uint8_t +static uint8_t ble_sm_build_authreq(void) { return ble_hs_cfg.sm_bonding << 0 | http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0189dab0/net/nimble/host/src/ble_sm_priv.h ---------------------------------------------------------------------- diff --git a/net/nimble/host/src/ble_sm_priv.h b/net/nimble/host/src/ble_sm_priv.h index 8a55d09..eb4f2da 100644 --- a/net/nimble/host/src/ble_sm_priv.h +++ b/net/nimble/host/src/ble_sm_priv.h @@ -293,8 +293,6 @@ void ble_sm_dbg_set_sc_keys(uint8_t *pubkey, uint8_t *privkey); int ble_sm_dbg_num_procs(void); #endif -uint8_t ble_sm_build_authreq(void); - void ble_sm_pair_cmd_log(struct ble_sm_pair_cmd *cmd); void ble_sm_pair_confirm_log(struct ble_sm_pair_confirm *cmd); void ble_sm_pair_random_log(struct ble_sm_pair_random *cmd);
