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

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

commit 1b3f3d19e9d83c4b87293fb0e7a1d17b3c5af6cc
Author: wangmingrong <wangmingr...@xiaomi.com>
AuthorDate: Thu Jan 4 20:07:42 2024 +0800

    noteram: fix variable type
    
    Signed-off-by: wangmingrong <wangmingr...@xiaomi.com>
---
 drivers/note/noteram_driver.c | 2 +-
 include/nuttx/streams.h       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/note/noteram_driver.c b/drivers/note/noteram_driver.c
index 8118ccc2ac..acc0389b25 100644
--- a/drivers/note/noteram_driver.c
+++ b/drivers/note/noteram_driver.c
@@ -111,7 +111,7 @@ static int noteram_open(FAR struct file *filep);
 static int noteram_close(FAR struct file *filep);
 static ssize_t noteram_read(FAR struct file *filep,
                             FAR char *buffer, size_t buflen);
-static int noteram_ioctl(struct file *filep, int cmd, unsigned long arg);
+static int noteram_ioctl(FAR struct file *filep, int cmd, unsigned long arg);
 static void noteram_add(FAR struct note_driver_s *drv,
                         FAR const void *note, size_t len);
 static void
diff --git a/include/nuttx/streams.h b/include/nuttx/streams.h
index b0a7e58535..dcf832566e 100644
--- a/include/nuttx/streams.h
+++ b/include/nuttx/streams.h
@@ -212,7 +212,7 @@ struct lib_rawoutstream_s
 struct lib_fileoutstream_s
 {
   struct lib_outstream_s common;
-  struct file            *file;
+  FAR struct file       *file;
 };
 
 struct lib_rawsistream_s

Reply via email to