net: lwm2m: fix senml cbor compiler warning
use size_t instead of assuming uint32_t Signed-off-by: Pascal Brogle <pascal.brogle@husqvarnagroup.com>
This commit is contained in:
parent
f4ddca5dca
commit
b178ff5246
1 changed files with 2 additions and 2 deletions
|
@ -821,7 +821,7 @@ static uint8_t parse_composite_read_paths(struct lwm2m_message *msg,
|
||||||
struct lwm2m_obj_path path;
|
struct lwm2m_obj_path path;
|
||||||
struct cbor_in_fmt_data *fd;
|
struct cbor_in_fmt_data *fd;
|
||||||
uint8_t paths = 0;
|
uint8_t paths = 0;
|
||||||
uint32_t isize;
|
size_t isize;
|
||||||
uint_fast8_t dret;
|
uint_fast8_t dret;
|
||||||
int len;
|
int len;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -934,7 +934,7 @@ int do_write_op_senml_cbor(struct lwm2m_message *msg)
|
||||||
{
|
{
|
||||||
uint_fast8_t dret;
|
uint_fast8_t dret;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
uint32_t decoded_sz;
|
size_t decoded_sz;
|
||||||
struct cbor_in_fmt_data *fd;
|
struct cbor_in_fmt_data *fd;
|
||||||
|
|
||||||
/* With block-wise transfer consecutive blocks will not carry the content header -
|
/* With block-wise transfer consecutive blocks will not carry the content header -
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue