Skip to content

Commit 23081bc

Browse files
committed
Fix formatting
1 parent c36ccad commit 23081bc

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

source/FreeRTOS_DHCP.c

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
pxIterator = NULL;
258258
}
259259

260-
if(( pxIterator != NULL ) && ( pxIterator->xDHCPData.eDHCPState == pxIterator->xDHCPData.eExpectedState ) )
260+
if( ( pxIterator != NULL ) && ( pxIterator->xDHCPData.eDHCPState == pxIterator->xDHCPData.eExpectedState ) )
261261
{
262262
/* The second parameter pdTRUE tells to check for a UDP message. */
263263
vDHCPProcessEndPoint( pdFALSE, pdTRUE, pxIterator );
@@ -277,14 +277,15 @@
277277
{
278278
/* Remove it now, destination not found. */
279279
FreeRTOS_ReleaseUDPPayloadBuffer( pucUDPPayload );
280+
280281
if( pxIterator == NULL )
281282
{
282283
FreeRTOS_printf( ( "vDHCPProcess: Removed a %d-byte message: target not found\n", ( int ) lBytes ) );
283284
}
284285
else
285286
{
286287
FreeRTOS_printf( ( "vDHCPProcess: Wrong state: expected: %d got: %d : ignore\n",
287-
pxIterator->xDHCPData.eExpectedState, pxIterator->xDHCPData.eDHCPState ) );
288+
pxIterator->xDHCPData.eExpectedState, pxIterator->xDHCPData.eDHCPState ) );
288289
}
289290
}
290291
}
@@ -497,9 +498,10 @@
497498
{
498499
/* Give up, start again. */
499500
EP_DHCPData.eDHCPState = eInitialWait;
500-
/* Reset expected state so that DHCP packets from
501-
different DHCP servers if available already in the DHCP socket can
502-
be processed */
501+
502+
/* Reset expected state so that DHCP packets from
503+
* different DHCP servers if available already in the DHCP socket can
504+
* be processed */
503505
EP_DHCPData.eExpectedState = eInitialWait;
504506
}
505507
}
@@ -1004,9 +1006,10 @@
10041006
{
10051007
/* Start again. */
10061008
EP_DHCPData.eDHCPState = eInitialWait;
1007-
/* Reset expected state so that DHCP packets from
1008-
different DHCP servers if available already in the DHCP socket can
1009-
be processed */
1009+
1010+
/* Reset expected state so that DHCP packets from
1011+
* different DHCP servers if available already in the DHCP socket can
1012+
* be processed */
10101013
EP_DHCPData.eExpectedState = eInitialWait;
10111014
}
10121015
}

0 commit comments

Comments
 (0)