diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-17 21:18:03 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-17 21:18:03 +0000 |
commit | 5c3162da749c8c8c1609c1ab1c85ab1961dbabde (patch) | |
tree | 881e6e8ab9eca25b605c21d34ed9ae32b8b8ac1d /nuttx/fs | |
parent | d4919d58ed21910c65c716ccb6a72f8a6d7db272 (diff) | |
download | px4-nuttx-5c3162da749c8c8c1609c1ab1c85ab1961dbabde.tar.gz px4-nuttx-5c3162da749c8c8c1609c1ab1c85ab1961dbabde.tar.bz2 px4-nuttx-5c3162da749c8c8c1609c1ab1c85ab1961dbabde.zip |
Extend test to verify select
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1267 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/fs_select.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/fs/fs_select.c b/nuttx/fs/fs_select.c index ca2ae4027..ad481377a 100644 --- a/nuttx/fs/fs_select.c +++ b/nuttx/fs/fs_select.c @@ -182,7 +182,7 @@ int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds, { if (readfds) { - if (pollset[fd].revents & POLLIN) + if (pollset[ndx].revents & POLLIN) { FD_SET(pollset[ndx].fd, readfds); ret++; @@ -191,7 +191,7 @@ int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds, if (writefds) { - if (pollset[fd].revents & POLLOUT) + if (pollset[ndx].revents & POLLOUT) { FD_SET(pollset[ndx].fd, writefds); ret++; @@ -200,7 +200,7 @@ int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds, if (exceptfds) { - if (pollset[fd].revents & POLLERR) + if (pollset[ndx].revents & POLLERR) { FD_SET(pollset[ndx].fd, exceptfds); ret++; |