Bluetooth: GATT: Fix attribute read return parameter type
The read() callback of attributes returns ssize_t and not size_t. Fix this, which also fixes a Coverity warning. Fixes Coverity CID 197457 Fixes #14958 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
12bf7e6ead
commit
bcc2d8f0a9
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ static u8_t gen_hash_m(const struct bt_gatt_attr *attr, void *user_data)
|
|||
struct gen_hash_state *state = user_data;
|
||||
struct bt_uuid_16 *u16;
|
||||
u8_t data[16];
|
||||
size_t len;
|
||||
ssize_t len;
|
||||
u16_t value;
|
||||
|
||||
if (attr->uuid->type != BT_UUID_TYPE_16)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue