mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
indentation fix
This commit is contained in:
parent
7bfea6edb7
commit
7399722a88
@ -174,6 +174,7 @@ sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg)
|
|||||||
(void *)timeout, msecs, (void *)h, (void *)arg));
|
(void *)timeout, msecs, (void *)h, (void *)arg));
|
||||||
|
|
||||||
LWIP_ASSERT("sys_timeout: timeouts != NULL", timeouts != NULL);
|
LWIP_ASSERT("sys_timeout: timeouts != NULL", timeouts != NULL);
|
||||||
|
|
||||||
if (timeouts->next == NULL) {
|
if (timeouts->next == NULL) {
|
||||||
timeouts->next = timeout;
|
timeouts->next = timeout;
|
||||||
return;
|
return;
|
||||||
@ -186,14 +187,13 @@ sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg)
|
|||||||
} else {
|
} else {
|
||||||
for(t = timeouts->next; t != NULL; t = t->next) {
|
for(t = timeouts->next; t != NULL; t = t->next) {
|
||||||
timeout->time -= t->time;
|
timeout->time -= t->time;
|
||||||
if (t->next == NULL ||
|
if (t->next == NULL || t->next->time > timeout->time) {
|
||||||
t->next->time > timeout->time) {
|
if (t->next != NULL) {
|
||||||
if (t->next != NULL) {
|
t->next->time -= timeout->time;
|
||||||
t->next->time -= timeout->time;
|
}
|
||||||
}
|
timeout->next = t->next;
|
||||||
timeout->next = t->next;
|
t->next = timeout;
|
||||||
t->next = timeout;
|
break;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user