Added more curly brackets to ensure ANSI C compliance when UIP_TCP is defined;
This commit is contained in:
parent
6a3565f5b6
commit
e931260603
1 changed files with 9 additions and 7 deletions
|
@ -29,7 +29,7 @@
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Id: tcpip.c,v 1.14 2008/10/15 07:59:34 adamdunkels Exp $
|
* $Id: tcpip.c,v 1.15 2008/10/15 08:52:30 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* \file
|
* \file
|
||||||
|
@ -666,12 +666,14 @@ PROCESS_THREAD(tcpip_process, ev, data)
|
||||||
PROCESS_BEGIN();
|
PROCESS_BEGIN();
|
||||||
|
|
||||||
#if UIP_TCP
|
#if UIP_TCP
|
||||||
|
{
|
||||||
static unsigned char i;
|
static unsigned char i;
|
||||||
|
|
||||||
for(i = 0; i < UIP_LISTENPORTS; ++i) {
|
for(i = 0; i < UIP_LISTENPORTS; ++i) {
|
||||||
s.listenports[i].port = 0;
|
s.listenports[i].port = 0;
|
||||||
}
|
}
|
||||||
s.p = PROCESS_CURRENT();
|
s.p = PROCESS_CURRENT();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tcpip_event = process_alloc_event();
|
tcpip_event = process_alloc_event();
|
||||||
|
|
Loading…
Add table
Reference in a new issue