Skip to content

Commit b178ff5

Browse files
broglep-workfabiobaltieri
authored andcommitted
net: lwm2m: fix senml cbor compiler warning
use size_t instead of assuming uint32_t Signed-off-by: Pascal Brogle <[email protected]>
1 parent f4ddca5 commit b178ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/net/lib/lwm2m/lwm2m_rw_senml_cbor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ static uint8_t parse_composite_read_paths(struct lwm2m_message *msg,
821821
struct lwm2m_obj_path path;
822822
struct cbor_in_fmt_data *fd;
823823
uint8_t paths = 0;
824-
uint32_t isize;
824+
size_t isize;
825825
uint_fast8_t dret;
826826
int len;
827827
int ret;
@@ -934,7 +934,7 @@ int do_write_op_senml_cbor(struct lwm2m_message *msg)
934934
{
935935
uint_fast8_t dret;
936936
int ret = 0;
937-
uint32_t decoded_sz;
937+
size_t decoded_sz;
938938
struct cbor_in_fmt_data *fd;
939939

940940
/* With block-wise transfer consecutive blocks will not carry the content header -

0 commit comments

Comments
 (0)