From 4db9731451226d1a8f75ae1c355d98cce626d143 Mon Sep 17 00:00:00 2001 From: Radoslaw Koppel Date: Tue, 2 Oct 2018 15:44:49 +0200 Subject: [PATCH] bluetooth: host: conn: Add const to addr in bt_le_set_auto_conn This commit adds missed const modifier for addr pointer for bt_le_set_auto_conn function Signed-off-by: Radoslaw Koppel --- include/bluetooth/conn.h | 2 +- subsys/bluetooth/host/conn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bluetooth/conn.h b/include/bluetooth/conn.h index 00d558bd2e7..b604de22c14 100644 --- a/include/bluetooth/conn.h +++ b/include/bluetooth/conn.h @@ -209,7 +209,7 @@ struct bt_conn *bt_conn_create_le(const bt_addr_le_t *peer, * * @return Zero on success or error code otherwise. */ -int bt_le_set_auto_conn(bt_addr_le_t *addr, +int bt_le_set_auto_conn(const bt_addr_le_t *addr, const struct bt_le_conn_param *param); /** @brief Initiate directed advertising to a remote device diff --git a/subsys/bluetooth/host/conn.c b/subsys/bluetooth/host/conn.c index 22bc9de3911..c35e300f2fa 100644 --- a/subsys/bluetooth/host/conn.c +++ b/subsys/bluetooth/host/conn.c @@ -1934,7 +1934,7 @@ struct bt_conn *bt_conn_create_le(const bt_addr_le_t *peer, return conn; } -int bt_le_set_auto_conn(bt_addr_le_t *addr, +int bt_le_set_auto_conn(const bt_addr_le_t *addr, const struct bt_le_conn_param *param) { struct bt_conn *conn;