mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 13:14:14 +08:00
android/hal-utils: Make hal-utils functions return const string
This commit is contained in:
parent
bec0539ba9
commit
69a33fbf2a
@ -27,7 +27,7 @@
|
||||
*
|
||||
* returns string representation of uuid
|
||||
*/
|
||||
char *bt_uuid_t2str(const uint8_t *uuid, char *buf)
|
||||
const char *bt_uuid_t2str(const uint8_t *uuid, char *buf)
|
||||
{
|
||||
int shift = 0;
|
||||
unsigned int i;
|
||||
@ -49,7 +49,7 @@ char *bt_uuid_t2str(const uint8_t *uuid, char *buf)
|
||||
return buf;
|
||||
}
|
||||
|
||||
char *btuuid2str(const uint8_t *uuid)
|
||||
const char *btuuid2str(const uint8_t *uuid)
|
||||
{
|
||||
static char buf[MAX_UUID_STR_LEN];
|
||||
|
||||
|
@ -23,5 +23,5 @@ static const char BT_BASE_UUID[] = {
|
||||
0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb
|
||||
};
|
||||
|
||||
char *bt_uuid_t2str(const uint8_t *uuid, char *buf);
|
||||
char *btuuid2str(const uint8_t *uuid);
|
||||
const char *bt_uuid_t2str(const uint8_t *uuid, char *buf);
|
||||
const char *btuuid2str(const uint8_t *uuid);
|
||||
|
Loading…
Reference in New Issue
Block a user