From 18510fa80fef9751228935ef31e0b9fab9e3cdcc Mon Sep 17 00:00:00 2001 From: heyuanjie87 Date: Tue, 14 Aug 2018 09:33:22 +0800 Subject: [PATCH] Update select.c --- components/dfs/src/select.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/dfs/src/select.c b/components/dfs/src/select.c index 339d506c7f..cbbd159557 100644 --- a/components/dfs/src/select.c +++ b/components/dfs/src/select.c @@ -28,7 +28,7 @@ #include #include -static void fdzero(fd_set *set, int nfds) +static void fdszero(fd_set *set, int nfds) { fd_mask *m; int n; @@ -130,17 +130,17 @@ int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struc /* Now set up the return values */ if (readfds) { - fdzero(readfds, nfds); + fdszero(readfds, nfds); } if (writefds) { - fdzero(writefds, nfds); + fdszero(writefds, nfds); } if (exceptfds) { - fdzero(exceptfds, nfds); + fdszero(exceptfds, nfds); } /* Convert the poll descriptor list back into selects 3 bitsets */