summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorTangyuxin <[email protected]>2022-06-08 01:21:50 +0800
committerGitHub <[email protected]>2022-06-08 01:21:50 +0800
commitf5c88add371d3f73b1441958638c2f2b033d42cb (patch)
tree7f11efdffcae24554d3a73715d08bc1201705a8b /components/libc
parent2d62a95339c1a854d50132b0d58ac403597ec069 (diff)
Fix compiler warnings (#6023)
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/posix/io/poll/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/posix/io/poll/poll.c b/components/libc/posix/io/poll/poll.c
index ba2442c0d5..5067817449 100644
--- a/components/libc/posix/io/poll/poll.c
+++ b/components/libc/posix/io/poll/poll.c
@@ -154,7 +154,7 @@ static int poll_do(struct pollfd *fds, nfds_t nfds, struct rt_poll_table *pt, in
{
int num;
int istimeout = 0;
- int n;
+ nfds_t n;
struct pollfd *pf;
int ret = 0;