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:
Luiz Augusto von Dentz 2015-10-22 16:42:42 +03:00 committed by Anas Nashif
parent 48cbd12ffb
commit 6f410176ef
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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];