Bluetooth: Use proper const type for bt_storage_clear()

The bt_storage_clear() function doesn't modify the data behind the
addr parameter, so the pointer should be decared const.

Change-Id: Icce676f9df80bac26ba4877bb63752559a43339f
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-10-04 22:59:28 +03:00
commit 7d0eef5f96
3 changed files with 3 additions and 3 deletions

View file

@ -389,7 +389,7 @@ void bt_storage_register(const struct bt_storage *bt_storage)
storage = bt_storage; storage = bt_storage;
} }
int bt_storage_clear(bt_addr_le_t *addr) int bt_storage_clear(const bt_addr_le_t *addr)
{ {
clear_bonds(addr); clear_bonds(addr);
/* FIXME: make the necessary storage callbacks too. */ /* FIXME: make the necessary storage callbacks too. */

View file

@ -91,7 +91,7 @@ void bt_storage_register(const struct bt_storage *storage);
* *
* @return 0 on success or negative error value on failure. * @return 0 on success or negative error value on failure.
*/ */
int bt_storage_clear(bt_addr_le_t *addr); int bt_storage_clear(const bt_addr_le_t *addr);
#ifdef __cplusplus #ifdef __cplusplus
} }

View file

@ -4145,7 +4145,7 @@ void bt_storage_register(const struct bt_storage *storage)
bt_storage = storage; bt_storage = storage;
} }
int bt_storage_clear(bt_addr_le_t *addr) int bt_storage_clear(const bt_addr_le_t *addr)
{ {
return -ENOSYS; return -ENOSYS;
} }