Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/MQTTFileDownloader_cbor.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer,

if( CborNoError == cborResult )
{
cborResult = cbor_value_get_int( &value, ( int32_t * ) fileId );
cborResult = cbor_value_get_int( &value, ( int * ) fileId );
}

/* Find the block ID. */
Expand All @@ -132,7 +132,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer,

if( CborNoError == cborResult )
{
cborResult = cbor_value_get_int( &value, ( int32_t * ) blockId );
cborResult = cbor_value_get_int( &value, ( int * ) blockId );
}

/* Find the block size. */
Expand All @@ -150,7 +150,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer,

if( CborNoError == cborResult )
{
cborResult = cbor_value_get_int( &value, ( int32_t * ) blockSize );
cborResult = cbor_value_get_int( &value, ( int * ) blockSize );
}

/* Find the payload bytes. */
Expand Down
6 changes: 3 additions & 3 deletions test/unit-test/downloader_utest.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ void test_processReceivedDataBlock_processesCBORBlock( void )
int32_t fileId = 0;
int32_t blockId = 0;
int32_t blockSize = 0;
const int32_t expectedFileId = 20;
const int32_t expectedBlockId = 30;
const int32_t expectedBlockSize = 40;
int32_t expectedFileId = 20;
int32_t expectedBlockId = 30;
int32_t expectedBlockSize = 40;

CBOR_Decode_GetStreamResponseMessage_ExpectAndReturn( ( const uint8_t * ) validCBORMsg, strlen( validCBORMsg ), NULL, NULL, NULL, NULL, NULL, true );
CBOR_Decode_GetStreamResponseMessage_IgnoreArg_fileId();
Expand Down