Bluetooth: TBS: Fix type of uri in call_alloc
The function had marked the type as char *, but it was in fact not a string but rather a uint8_t array. Marked the type properly and added a cast when using it with bt_tbs_remote_incoming. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
f500f7c22f
commit
c49a058b9b
1 changed files with 3 additions and 3 deletions
|
@ -345,8 +345,8 @@ static uint8_t next_free_call_index(void)
|
|||
return BT_TBS_FREE_CALL_INDEX;
|
||||
}
|
||||
|
||||
static struct bt_tbs_call *call_alloc(struct tbs_service_inst *inst, uint8_t state, const char *uri,
|
||||
uint16_t uri_len)
|
||||
static struct bt_tbs_call *call_alloc(struct tbs_service_inst *inst, uint8_t state,
|
||||
const uint8_t *uri, uint16_t uri_len)
|
||||
{
|
||||
struct bt_tbs_call *free_call = NULL;
|
||||
|
||||
|
@ -1947,7 +1947,7 @@ int bt_tbs_remote_incoming(uint8_t bearer_index, const char *to,
|
|||
|
||||
service_inst = CONTAINER_OF(inst, struct tbs_service_inst, inst);
|
||||
|
||||
call = call_alloc(service_inst, BT_TBS_CALL_STATE_INCOMING, from, strlen(from));
|
||||
call = call_alloc(service_inst, BT_TBS_CALL_STATE_INCOMING, (uint8_t *)from, strlen(from));
|
||||
if (call == NULL) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue