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