mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-18 20:10:53 +00:00
Fixed a compiler warning (comparison between signed and unsigned)
This commit is contained in:
parent
87c2d911c9
commit
9e59f661bc
@ -938,7 +938,7 @@ int
|
||||
lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
|
||||
struct timeval *timeout)
|
||||
{
|
||||
int i;
|
||||
u32_t waitres;
|
||||
int nready;
|
||||
fd_set lreadset, lwriteset, lexceptset;
|
||||
u32_t msectimeout;
|
||||
@ -1017,7 +1017,7 @@ lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
|
||||
msectimeout = 1;
|
||||
}
|
||||
|
||||
i = sys_arch_sem_wait(select_cb.sem, msectimeout);
|
||||
waitres = sys_arch_sem_wait(select_cb.sem, msectimeout);
|
||||
|
||||
/* Take us off the list */
|
||||
sys_sem_wait(selectsem);
|
||||
@ -1034,7 +1034,7 @@ lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
|
||||
sys_sem_signal(selectsem);
|
||||
|
||||
sys_sem_free(select_cb.sem);
|
||||
if (i == SYS_ARCH_TIMEOUT) {
|
||||
if (waitres == SYS_ARCH_TIMEOUT) {
|
||||
/* Timeout */
|
||||
if (readset)
|
||||
FD_ZERO(readset);
|
||||
|
Loading…
Reference in New Issue
Block a user