Skip to content

Commit

Permalink
Rectify formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dakshit Babbar committed Feb 3, 2025
1 parent 07fd53d commit aa9d36d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions source/core_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2213,9 +2213,9 @@ static MQTTStatus_t sendPublishWithoutCopy( MQTTContext_t * pContext,
( pContext->storeFunction != NULL ) )
{
/* If not already set, set the dup flag before storing a copy of the publish
* this is because on retrieving back this copy we will get it in the form of an
* array of TransportOutVector_t that holds the data in a const pointer which cannot be
* changed after retrieving. */
* this is because on retrieving back this copy we will get it in the form of an
* array of TransportOutVector_t that holds the data in a const pointer which cannot be
* changed after retrieving. */
if( pPublishInfo->dup != true )
{
status = MQTT_UpdateDuplicatePublishFlag( pMqttHeader, true );
Expand Down Expand Up @@ -3756,7 +3756,7 @@ void MQTT_SerializeMQTTVec( uint8_t * pAllocatedMem,

for( i = 0; i < vecLen; i++ )
{
( void ) memcpy( &pAllocatedMem[ index ], (const uint8_t *) pTransportVec[ i ].iov_base, pTransportVec[ i ].iov_len );
( void ) memcpy( &pAllocatedMem[ index ], ( const uint8_t * ) pTransportVec[ i ].iov_base, pTransportVec[ i ].iov_len );
index += pTransportVec[ i ].iov_len;
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/include/core_mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ typedef void (* MQTTEventCallback_t )( struct MQTTContext * pContext,
*
* @param[in] pContext Initialised MQTT Context.
* @param[in] packetId Outgoing publish packet identifier.
* @param[in] pMqttVec Pointer to the opaque mqtt vector structure. Users should use MQTT_GetBytesInMQTTVec
* @param[in] pMqttVec Pointer to the opaque mqtt vector structure. Users should use MQTT_GetBytesInMQTTVec
* and MQTT_SerializeMQTTVec functions to get the memory required and to serialize the
* MQTTVec_t in the provided memory respectively.
*
Expand Down

0 comments on commit aa9d36d

Please sign in to comment.