mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 13:13:31 +08:00
update select.c
This commit is contained in:
parent
fd209cb880
commit
d948dba42a
@ -34,7 +34,7 @@ static void fdzero(fd_set *set, int nfds)
|
|||||||
int n;
|
int n;
|
||||||
|
|
||||||
m = (fd_mask*)set;
|
m = (fd_mask*)set;
|
||||||
for (n = 0; n < nfds; n += sizeof(fd_mask))
|
for (n = 0; n < nfds; n += (sizeof(fd_mask) * 8))
|
||||||
{
|
{
|
||||||
rt_memset(m, 0, sizeof(fd_mask));
|
rt_memset(m, 0, sizeof(fd_mask));
|
||||||
m ++;
|
m ++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user