From 6f410176ef360ada950533d198d07a87353bbc8e Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 22 Oct 2015 16:42:42 +0300 Subject: [PATCH] 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 --- include/bluetooth/uuid.h | 2 +- net/bluetooth/uuid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bluetooth/uuid.h b/include/bluetooth/uuid.h index 0dc7ca144ff..18028514538 100644 --- a/include/bluetooth/uuid.h +++ b/include/bluetooth/uuid.h @@ -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 */ diff --git a/net/bluetooth/uuid.c b/net/bluetooth/uuid.c index b2062018b4c..a3d9fa50424 100644 --- a/net/bluetooth/uuid.c +++ b/net/bluetooth/uuid.c @@ -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];