sockets.c: fixed assert check after changing type of sock->select_waiting to unsigned

This commit is contained in:
goldsimon 2014-12-17 16:21:44 +01:00
parent 5d74d97fe1
commit a883fe7b8e

View File

@ -1265,8 +1265,8 @@ lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
struct lwip_sock *sock = tryget_socket(i);
LWIP_ASSERT("sock != NULL", sock != NULL);
SYS_ARCH_PROTECT(lev);
LWIP_ASSERT("sock->select_waiting > 0", sock->select_waiting > 0);
sock->select_waiting--;
LWIP_ASSERT("sock->select_waiting >= 0", sock->select_waiting >= 0);
SYS_ARCH_UNPROTECT(lev);
}
}