Skip to content

Commit 5150b57

Browse files
committed
Uncrustify: triggered by comment.
1 parent 7104340 commit 5150b57

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

source/core_mqtt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,6 +2226,7 @@ static MQTTStatus_t sendPublishWithoutCopy( MQTTContext_t * pContext,
22262226
( pContext->storeFunction != NULL ) )
22272227
{
22282228
MQTTVec_t * pMqttVec = ( MQTTVec_t * ) pIoVector;
2229+
22292230
if( pContext->storeFunction( pContext, packetId, pMqttVec, ioVectorLength ) != true )
22302231
{
22312232
status = MQTTPublishStoreFailed;
@@ -2573,8 +2574,8 @@ static MQTTStatus_t handleUncleanSessionResumption( MQTTContext_t * pContext )
25732574

25742575
MQTT_POST_STATE_UPDATE_HOOK( pContext );
25752576
}
2576-
}while( ( packetId != MQTT_PACKET_ID_INVALID ) &&
2577-
( status == MQTTSuccess ) );
2577+
} while( ( packetId != MQTT_PACKET_ID_INVALID ) &&
2578+
( status == MQTTSuccess ) );
25782579
}
25792580

25802581
return status;

test/unit-test/core_mqtt_utest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,10 +2384,10 @@ void test_MQTT_Connect_resendUnAckedPublishes( void )
23842384
MQTTPubAckInfo_t incomingRecords = { 0 };
23852385
MQTTPubAckInfo_t outgoingRecords = { 0 };
23862386
/* MQTTPublishState_t expectedState = { 0 }; */
2387-
uint8_t * localPublishCopyBuffer = (uint8_t *) "Hello world!";
2387+
uint8_t * localPublishCopyBuffer = ( uint8_t * ) "Hello world!";
23882388

23892389
publishCopyBuffer = localPublishCopyBuffer;
2390-
publishCopyBufferSize = sizeof("Hello world!");
2390+
publishCopyBufferSize = sizeof( "Hello world!" );
23912391

23922392
setupTransportInterface( &transport );
23932393
setupNetworkBuffer( &networkBuffer );

0 commit comments

Comments
 (0)