vfs:fix a type mismatch issue and a typo

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
wanggang26 2023-11-04 20:11:19 +08:00 committed by Alan C. Assis
parent 0a8b6404d8
commit 89e5ceb51e
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ static int file_vioctl(FAR struct file *filep, int req, va_list ap)
(unsigned long)(uintptr_t)&geo); (unsigned long)(uintptr_t)&geo);
if (ret >= 0) if (ret >= 0)
{ {
*(FAR blksize_t *)(uintptr_t)arg = geo.geo_nsectors; *(FAR blkcnt_t *)(uintptr_t)arg = geo.geo_nsectors;
} }
} }
break; break;

View File

@ -175,7 +175,7 @@ static inline int poll_teardown(FAR struct pollfd *fds, nfds_t nfds,
* Name: poll_cleanup * Name: poll_cleanup
* *
* Description: * Description:
* Setup the poll operation for each descriptor in the list. * Cleanup the poll operation.
* *
****************************************************************************/ ****************************************************************************/