Bluetooth: Make bt_uuid_str parameter const
bt_uuid_to_str uuid param is const therefore bt_uuid_str should be const as well. Change-Id: I043d66d16c863ed92e60477dbbb9c37bcde92703 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
48cbd12ffb
commit
6f410176ef
@ -186,7 +186,7 @@ void bt_uuid_to_str(const struct bt_uuid *uuid, char *str, size_t len);
|
||||
*
|
||||
* @return String representation of the UUID given
|
||||
*/
|
||||
const char *bt_uuid_str(struct bt_uuid *uuid);
|
||||
const char *bt_uuid_str(const struct bt_uuid *uuid);
|
||||
#endif /* CONFIG_BLUETOOTH_DEBUG */
|
||||
|
||||
#endif /* __BT_UUID_H */
|
||||
|
||||
@ -102,7 +102,7 @@ void bt_uuid_to_str(const struct bt_uuid *uuid, char *str, size_t len)
|
||||
}
|
||||
}
|
||||
|
||||
const char *bt_uuid_str(struct bt_uuid *uuid)
|
||||
const char *bt_uuid_str(const struct bt_uuid *uuid)
|
||||
{
|
||||
static char str[37];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user