Skip to content

Commit a9aecd0

Browse files
Merge branch 'main' into update_version_number
2 parents 39a1127 + 341a096 commit a9aecd0

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

source/MQTTFileDownloader_base64.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,6 @@ static Base64Status_t preprocessBase64Index( uint8_t base64Index,
191191
int64_t numPaddingVal;
192192
int64_t numWhitespaceVal;
193193

194-
assert( numPadding != NULL );
195-
assert( numWhitespace != NULL );
196-
197194
numPaddingVal = *numPadding;
198195
numWhitespaceVal = *numWhitespace;
199196

@@ -263,8 +260,6 @@ static void updateBase64DecodingBuffer( const uint8_t base64Index,
263260
uint32_t base64IndexBuffer;
264261
uint32_t numDataInBuffer;
265262

266-
assert( base64IndexBufferPtr != NULL );
267-
assert( numDataIndexBuffer != NULL );
268263
assert( base64Index <= SYMBOL_TO_INDEX_MAP_VALUE_UPPER_BOUND );
269264

270265
base64IndexBuffer = *base64IndexBufferPtr;
@@ -322,12 +317,8 @@ static Base64Status_t decodeBase64IndexBuffer( uint32_t * base64IndexBufferPtr,
322317
uint32_t numDataInBuffer;
323318
uint32_t numDataToWrite;
324319

325-
assert( base64IndexBufferPtr != NULL );
326-
assert( numDataIndexBuffer != NULL );
327320
assert( ( *numDataIndexBuffer == 2U ) || ( *numDataIndexBuffer == 3U ) ||
328321
( *numDataIndexBuffer == 4U ) );
329-
assert( dest != NULL );
330-
assert( outputLength != NULL );
331322

332323
outputLen = *outputLength;
333324
base64IndexBuffer = *base64IndexBufferPtr;

source/MQTTFileDownloader_cbor.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer,
114114

115115
if( CborNoError == cborResult )
116116
{
117-
cborResult = cbor_value_get_int( &value, ( int * ) fileId );
117+
cborResult = cbor_value_get_int( &value, ( int32_t * ) fileId );
118118
}
119119

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

133133
if( CborNoError == cborResult )
134134
{
135-
cborResult = cbor_value_get_int( &value, ( int * ) blockId );
135+
cborResult = cbor_value_get_int( &value, ( int32_t * ) blockId );
136136
}
137137

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

151151
if( CborNoError == cborResult )
152152
{
153-
cborResult = cbor_value_get_int( &value, ( int * ) blockSize );
153+
cborResult = cbor_value_get_int( &value, ( int32_t * ) blockSize );
154154
}
155155

156156
/* Find the payload bytes. */

0 commit comments

Comments
 (0)