From 89e5ceb51e56c8719455306156822e3812e01249 Mon Sep 17 00:00:00 2001 From: wanggang26 Date: Sat, 4 Nov 2023 20:11:19 +0800 Subject: [PATCH] vfs:fix a type mismatch issue and a typo Signed-off-by: wanggang26 --- 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. * ****************************************************************************/