From 9d294ab5305e56d2d6744745b3a44d8c86597337 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 11 Feb 2016 17:23:14 +0100 Subject: [PATCH] hci.h: mark transport config as const --- src/hci.c | 2 +- src/hci.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hci.c b/src/hci.c index 694733221..ca2fe4e61 100644 --- a/src/hci.c +++ b/src/hci.c @@ -1880,7 +1880,7 @@ static void hci_state_reset(void){ hci_stack->le_connection_parameter_range.le_supervision_timeout_max = 3200; } -void hci_init(const hci_transport_t *transport, void *config, btstack_link_key_db_t const * link_key_db){ +void hci_init(const hci_transport_t *transport, const void *config, btstack_link_key_db_t const * link_key_db){ #ifdef HAVE_MALLOC if (!hci_stack) { diff --git a/src/hci.h b/src/hci.h index 036f0520d..c9aa3f552 100644 --- a/src/hci.h +++ b/src/hci.h @@ -696,7 +696,7 @@ void hci_local_bd_addr(bd_addr_t address_buffer); /** * @brief Set up HCI. Needs to be called before any other function. */ -void hci_init(const hci_transport_t *transport, void *config, btstack_link_key_db_t const * btstack_link_key_db); +void hci_init(const hci_transport_t *transport, const void *config, btstack_link_key_db_t const * btstack_link_key_db); /** * @brief Configure Bluetooth chipset driver. Has to be called before power on, or right after receiving the local version information.