This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 89e5ceb51e vfs:fix a type mismatch issue and a typo
89e5ceb51e is described below

commit 89e5ceb51e56c8719455306156822e3812e01249
Author: wanggang26 <wanggan...@xiaomi.com>
AuthorDate: Sat Nov 4 20:11:19 2023 +0800

    vfs:fix a type mismatch issue and a typo
    
    Signed-off-by: wanggang26 <wanggan...@xiaomi.com>
---
 fs/vfs/fs_ioctl.c | 2 +-
 fs/vfs/fs_poll.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/vfs/fs_ioctl.c b/fs/vfs/fs_ioctl.c
index 81f705ff72..ecc3789583 100644
--- a/fs/vfs/fs_ioctl.c
+++ b/fs/vfs/fs_ioctl.c
@@ -181,7 +181,7 @@ static int file_vioctl(FAR struct file *filep, int req, 
va_list ap)
                                         (unsigned long)(uintptr_t)&geo);
             if (ret >= 0)
               {
-                *(FAR blksize_t *)(uintptr_t)arg = geo.geo_nsectors;
+                *(FAR blkcnt_t *)(uintptr_t)arg = geo.geo_nsectors;
               }
           }
         break;
diff --git a/fs/vfs/fs_poll.c b/fs/vfs/fs_poll.c
index b078402d94..09c3ae35f6 100644
--- a/fs/vfs/fs_poll.c
+++ b/fs/vfs/fs_poll.c
@@ -175,7 +175,7 @@ static inline int poll_teardown(FAR struct pollfd *fds, 
nfds_t nfds,
  * Name: poll_cleanup
  *
  * Description:
- *   Setup the poll operation for each descriptor in the list.
+ *   Cleanup the poll operation.
  *
  ****************************************************************************/
 

Reply via email to